summaryrefslogtreecommitdiff
path: root/lib/libc/net/if_nameindex.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-12-16 17:45:00 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-12-16 17:45:00 +0000
commitaded13c23b29033769b54120973c097caf998bf5 (patch)
tree617f2298aec48e2071d9bc0dce2b625a18cff7dd /lib/libc/net/if_nameindex.c
parent79e58277cbefd21ba134443f11fc384fe0a22d50 (diff)
Eliminate some gcc warnings about 'unused variables', mostly by
adding appropriate #ifdef's around declarations. ok millert@ (with a tweak I will commit separately)
Diffstat (limited to 'lib/libc/net/if_nameindex.c')
-rw-r--r--lib/libc/net/if_nameindex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/if_nameindex.c b/lib/libc/net/if_nameindex.c
index 123ac85ad69..6e5bc0809a7 100644
--- a/lib/libc/net/if_nameindex.c
+++ b/lib/libc/net/if_nameindex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nameindex.c,v 1.12 2016/12/15 20:50:36 krw Exp $ */
+/* $OpenBSD: if_nameindex.c,v 1.13 2016/12/16 17:44:59 krw Exp $ */
/* $KAME: if_nameindex.c,v 1.7 2000/11/24 08:17:20 itojun Exp $ */
/*-
@@ -81,7 +81,7 @@ if_nameindex(void)
struct if_nameindex_msg *ifnm = NULL;
struct if_nameindex *ifni = NULL, *ifni2;
char *cp;
- size_t nbytes, needed;
+ size_t needed;
unsigned int ni, i;
int mib[6];