aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2008-08-20 05:00:18 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2008-08-20 05:00:18 +0000
commit516993d48e9a7d91a7f40e8bda0ec450694fa0ad (patch)
treead4b77d7530b79d1f931501007295f99ea9f81c6
parentc2dfb0d05b6e3840b6149d24078b9804fa9e3124 (diff)
downloadsrc-516993d48e9a7d91a7f40e8bda0ec450694fa0ad.tar.gz
src-516993d48e9a7d91a7f40e8bda0ec450694fa0ad.zip
ifnet_setbyindex() is only used locally, go back to being static.
Notes
Notes: svn path=/head/; revision=181900
-rw-r--r--sys/net/if.c2
-rw-r--r--sys/net/if_var.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index cfb16aa3aa30..a3ef17dc2cd6 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -176,7 +176,7 @@ ifnet_byindex(u_short idx)
return (ifp);
}
-void
+static void
ifnet_setbyindex(u_short idx, struct ifnet *ifp)
{
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 588dead76389..593d9a2b733e 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -646,7 +646,6 @@ struct ifindex_entry {
};
struct ifnet *ifnet_byindex(u_short idx);
-void ifnet_setbyindex(u_short idx, struct ifnet *ifp);
/*
* Given the index, ifaddr_byindex() returns the one and only