about summary refs log tree commit diff
path: root/inet
diff options
context:
space:
mode:
Diffstat (limited to 'inet')
-rw-r--r--inet/test_ifindex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/inet/test_ifindex.c b/inet/test_ifindex.c
index f0a34cf0da..d44e0b1cb4 100644
--- a/inet/test_ifindex.c
+++ b/inet/test_ifindex.c
@@ -45,7 +45,8 @@ main (void)
   for (p = idx; p->if_index || p->if_name; ++p)
     {
       char buf[IFNAMSIZ];
-      int ni, result;
+      unsigned int ni;
+      int result;
       printf ("%3d %15s | ", p->if_index, p->if_name);
       printf ("%3d", ni = if_nametoindex (p->if_name));
       printf ("%15s", if_indextoname (p->if_index, buf));