summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/if_nametoindex.c
diff options
context:
space:
mode:
authorcmetz <>1999-06-23 22:50:49 +0000
committercmetz <>1999-06-23 22:50:49 +0000
commitcfe67577db8d1872a9aaad7dd5db3b05b7b400dd (patch)
treea7de39425d2534e1330ecea76e150b65c3ff4eaa /src/lib/libc/net/if_nametoindex.c
parentccb44bc54f33622e79fd6fa24fd8999dc2543642 (diff)
downloadopenbsd-cfe67577db8d1872a9aaad7dd5db3b05b7b400dd.tar.gz
openbsd-cfe67577db8d1872a9aaad7dd5db3b05b7b400dd.tar.bz2
openbsd-cfe67577db8d1872a9aaad7dd5db3b05b7b400dd.zip
Compilation fixes.
Diffstat (limited to 'src/lib/libc/net/if_nametoindex.c')
-rw-r--r--src/lib/libc/net/if_nametoindex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/if_nametoindex.c b/src/lib/libc/net/if_nametoindex.c
index 2b9810d314..ad05387e34 100644
--- a/src/lib/libc/net/if_nametoindex.c
+++ b/src/lib/libc/net/if_nametoindex.c
@@ -56,9 +56,9 @@ unsigned int if_nametoindex(const char *name)
56 ifconf.ifc_buf = 0; 56 ifconf.ifc_buf = 0;
57 if (ioctl(fd, SIOCGIFCONF, (void *)&ifconf)) 57 if (ioctl(fd, SIOCGIFCONF, (void *)&ifconf))
58 goto ret; 58 goto ret;
59 if (ifconf->ifc_len < IFNAMSIZ) 59 if (ifconf.ifc_len < IFNAMSIZ)
60 goto ret; 60 goto ret;
61 if (!(ifconf->ifc_buf = malloc(ifconf->ifc_len))) 61 if (!(ifconf.ifc_buf = malloc(ifconf.ifc_len)))
62 goto ret; 62 goto ret;
63 if (ioctl(fd, SIOCGIFCONF, (void *)&ifconf)) 63 if (ioctl(fd, SIOCGIFCONF, (void *)&ifconf))
64 goto ret; 64 goto ret;