summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2008-08-20 05:00:18 +0000
committerthompsa <thompsa@FreeBSD.org>2008-08-20 05:00:18 +0000
commitfb39793d413da2a62c1fa0f3126c3b01e5c41e8b (patch)
treead4b77d7530b79d1f931501007295f99ea9f81c6
parent52ae0107c8cb0dd1425a012460d8be8a568a21ae (diff)
downloadFreeBSD-src-fb39793d413da2a62c1fa0f3126c3b01e5c41e8b.zip
FreeBSD-src-fb39793d413da2a62c1fa0f3126c3b01e5c41e8b.tar.gz
ifnet_setbyindex() is only used locally, go back to being static.
-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 cfb16aa..a3ef17d 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 588dead..593d9a2 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
OpenPOWER on IntegriCloud