summaryrefslogtreecommitdiffstats
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-07-16 21:13:04 +0000
committerrwatson <rwatson@FreeBSD.org>2009-07-16 21:13:04 +0000
commit88f8de4d4001c74946458579ca0710df70161c90 (patch)
tree55b9efd9d8e3a027a51c2539777939228ae3532b /sys/net/if.c
parentbfbc302bca72638c26907b5b0ee204eab992fdde (diff)
downloadFreeBSD-src-88f8de4d4001c74946458579ca0710df70161c90.zip
FreeBSD-src-88f8de4d4001c74946458579ca0710df70161c90.tar.gz
Remove unused VNET_SET() and related macros; only VNET_GET() is
ever actually used. Rename VNET_GET() to VNET() to shorten variable references. Discussed with: bz, julian Reviewed by: bz Approved by: re (kensmith, kib)
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index daab1ac..f8d2fb1 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -163,8 +163,8 @@ static VNET_DEFINE(int, if_indexlim) = 8;
/* Table of ifnet by index. Locked with ifnet_lock. */
static VNET_DEFINE(struct ifindex_entry *, ifindex_table);
-#define V_if_indexlim VNET_GET(if_indexlim)
-#define V_ifindex_table VNET_GET(ifindex_table)
+#define V_if_indexlim VNET(if_indexlim)
+#define V_ifindex_table VNET(ifindex_table)
int ifqmaxlen = IFQ_MAXLEN;
struct rwlock ifnet_lock;
OpenPOWER on IntegriCloud