diff options
author | markm <markm@FreeBSD.org> | 2003-04-30 12:57:40 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2003-04-30 12:57:40 +0000 |
commit | 6cc289554b8533c3a4ccee449df82dd25964011a (patch) | |
tree | 78f25ba6828418e0a4c21039c67b86f39bb61181 /sys/net | |
parent | bc54a1bc8ba917055c728fd55e152d1aede2174c (diff) | |
download | FreeBSD-src-6cc289554b8533c3a4ccee449df82dd25964011a.zip FreeBSD-src-6cc289554b8533c3a4ccee449df82dd25964011a.tar.gz |
Fix some easy, global, lint warnings. In most cases, this means
making some local variables static. In a couple of cases, this means
removing an unused variable.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if.c | 2 | ||||
-rw-r--r-- | sys/net/if_ethersubr.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 93620c7..41b7286 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -103,7 +103,7 @@ struct ifindex_entry *ifindex_table = NULL; int ifqmaxlen = IFQ_MAXLEN; struct ifnethead ifnet; /* depend on static init XXX */ struct mtx ifnet_lock; -int if_cloners_count; +static int if_cloners_count; LIST_HEAD(, if_clone) if_cloners = LIST_HEAD_INITIALIZER(if_cloners); static int if_indexlim = 8; diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 541ef43..d7ebcc7 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -102,7 +102,7 @@ int (*ng_ether_output_p)(struct ifnet *ifp, struct mbuf **mp); void (*ng_ether_attach_p)(struct ifnet *ifp); void (*ng_ether_detach_p)(struct ifnet *ifp); -void (*vlan_input_p)(struct ifnet *, struct mbuf *); +static void (*vlan_input_p)(struct ifnet *, struct mbuf *); /* bridge support */ int do_bridge; |