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 | |
parent | ccb44bc54f33622e79fd6fa24fd8999dc2543642 (diff) | |
download | openbsd-cfe67577db8d1872a9aaad7dd5db3b05b7b400dd.tar.gz openbsd-cfe67577db8d1872a9aaad7dd5db3b05b7b400dd.tar.bz2 openbsd-cfe67577db8d1872a9aaad7dd5db3b05b7b400dd.zip |
Compilation fixes.
-rw-r--r-- | src/lib/libc/net/if_indextoname.c | 8 | ||||
-rw-r--r-- | src/lib/libc/net/if_nameindex.c | 4 | ||||
-rw-r--r-- | src/lib/libc/net/if_nametoindex.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libc/net/if_indextoname.c b/src/lib/libc/net/if_indextoname.c index 1301224444..b3c89fb9a8 100644 --- a/src/lib/libc/net/if_indextoname.c +++ b/src/lib/libc/net/if_indextoname.c | |||
@@ -88,13 +88,13 @@ char *if_indextoname(unsigned int index, char *name) | |||
88 | 88 | ||
89 | ifconf.ifc_len = 0; | 89 | ifconf.ifc_len = 0; |
90 | ifconf.ifc_buf = 0; | 90 | ifconf.ifc_buf = 0; |
91 | if (ioctl(fd, SIOCGIFCONF, (void *)ifconf)) | 91 | if (ioctl(fd, SIOCGIFCONF, (void *)&ifconf)) |
92 | goto ret; | 92 | goto ret; |
93 | if (ifconf->ifc_len < IFNAMSIZ) | 93 | if (ifconf.ifc_len < IFNAMSIZ) |
94 | goto ret; | 94 | goto ret; |
95 | if (!(ifconf->ifc_buf = malloc(ifconf->ifc_len))) | 95 | if (!(ifconf.ifc_buf = malloc(ifconf.ifc_len))) |
96 | goto ret; | 96 | goto ret; |
97 | if (ioctl(fd, SIOCGIFCONF, (void *)ifconf)) | 97 | if (ioctl(fd, SIOCGIFCONF, (void *)&ifconf)) |
98 | goto ret; | 98 | goto ret; |
99 | 99 | ||
100 | i = 0; | 100 | i = 0; |
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; |
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; |