aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2018-07-24 16:35:52 +0000
committerAndrew Turner <andrew@FreeBSD.org>2018-07-24 16:35:52 +0000
commit5f901c92a8d99227901f548f0b755b31d9dd8525 (patch)
tree90ee09df9416f8603c23b2fa89cb65e6da1c5637 /sys/net/if.c
parent8f958ba91e49bdac1b41f93245619d547618a2b1 (diff)
downloadsrc-5f901c92a8d99227901f548f0b755b31d9dd8525.tar.gz
src-5f901c92a8d99227901f548f0b755b31d9dd8525.zip
Use the new VNET_DEFINE_STATIC macro when we are defining static VNET
variables. Reviewed by: bz Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D16147
Notes
Notes: svn path=/head/; revision=336676
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index f398bc1075c0..6e3d097f7b47 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -293,7 +293,7 @@ int ifqmaxlen = IFQ_MAXLEN;
VNET_DEFINE(struct ifnethead, ifnet); /* depend on static init XXX */
VNET_DEFINE(struct ifgrouphead, ifg_head);
-static VNET_DEFINE(int, if_indexlim) = 8;
+VNET_DEFINE_STATIC(int, if_indexlim) = 8;
/* Table of ifnet by index. */
VNET_DEFINE(struct ifnet **, ifindex_table);