diff options
author | cmetz <> | 1999-06-23 22:50:49 +0000 |
---|---|---|
committer | cmetz <> | 1999-06-23 22:50:49 +0000 |
commit | cfe67577db8d1872a9aaad7dd5db3b05b7b400dd (patch) | |
tree | a7de39425d2534e1330ecea76e150b65c3ff4eaa /src/lib/libc/net/if_nameindex.c | |
parent | ccb44bc54f33622e79fd6fa24fd8999dc2543642 (diff) | |
download | openbsd-cfe67577db8d1872a9aaad7dd5db3b05b7b400dd.tar.gz openbsd-cfe67577db8d1872a9aaad7dd5db3b05b7b400dd.tar.bz2 openbsd-cfe67577db8d1872a9aaad7dd5db3b05b7b400dd.zip |
Compilation fixes.
Diffstat (limited to 'src/lib/libc/net/if_nameindex.c')
-rw-r--r-- | src/lib/libc/net/if_nameindex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/if_nameindex.c b/src/lib/libc/net/if_nameindex.c index ba7f5e5525..2acbeeb3f8 100644 --- a/src/lib/libc/net/if_nameindex.c +++ b/src/lib/libc/net/if_nameindex.c | |||
@@ -84,9 +84,9 @@ struct if_nameindex *if_nameindex(void) | |||
84 | ifconf.ifc_buf = 0; | 84 | ifconf.ifc_buf = 0; |
85 | if (ioctl(fd, SIOCGIFCONF, (void *)&ifconf)) | 85 | if (ioctl(fd, SIOCGIFCONF, (void *)&ifconf)) |
86 | goto ret; | 86 | goto ret; |
87 | if (ifconf->ifc_len < IFNAMSIZ) | 87 | if (ifconf.ifc_len < IFNAMSIZ) |
88 | goto ret; | 88 | goto ret; |
89 | if (!(ifconf->ifc_buf = malloc(ifconf->ifc_len))) | 89 | if (!(ifconf.ifc_buf = malloc(ifconf.ifc_len))) |
90 | goto ret; | 90 | goto ret; |
91 | if (ioctl(fd, SIOCGIFCONF, (void *)&ifconf)) | 91 | if (ioctl(fd, SIOCGIFCONF, (void *)&ifconf)) |
92 | goto ret; | 92 | goto ret; |