From 5f901c92a8d99227901f548f0b755b31d9dd8525 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Tue, 24 Jul 2018 16:35:52 +0000 Subject: 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 --- sys/net/if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/net/if.c') 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); -- cgit v1.2.3