diff options
author | cmetz <cmetz@cvs.openbsd.org> | 1999-06-23 22:50:50 +0000 |
---|---|---|
committer | cmetz <cmetz@cvs.openbsd.org> | 1999-06-23 22:50:50 +0000 |
commit | 3543fc077268a65c994f29d1f6ff88f3e4fe7c20 (patch) | |
tree | 064bfa032b82d8676c8b889d83fa931f0630348d /lib | |
parent | c1d487da1543f6e9f9489a0846157657d4021eb1 (diff) |
Compilation fixes.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/net/if_indextoname.c | 8 | ||||
-rw-r--r-- | lib/libc/net/if_nameindex.c | 4 | ||||
-rw-r--r-- | lib/libc/net/if_nametoindex.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/lib/libc/net/if_indextoname.c b/lib/libc/net/if_indextoname.c index 1301224444c..b3c89fb9a8b 100644 --- a/lib/libc/net/if_indextoname.c +++ b/lib/libc/net/if_indextoname.c @@ -88,13 +88,13 @@ char *if_indextoname(unsigned int index, char *name) ifconf.ifc_len = 0; ifconf.ifc_buf = 0; - if (ioctl(fd, SIOCGIFCONF, (void *)ifconf)) + if (ioctl(fd, SIOCGIFCONF, (void *)&ifconf)) goto ret; - if (ifconf->ifc_len < IFNAMSIZ) + if (ifconf.ifc_len < IFNAMSIZ) goto ret; - if (!(ifconf->ifc_buf = malloc(ifconf->ifc_len))) + if (!(ifconf.ifc_buf = malloc(ifconf.ifc_len))) goto ret; - if (ioctl(fd, SIOCGIFCONF, (void *)ifconf)) + if (ioctl(fd, SIOCGIFCONF, (void *)&ifconf)) goto ret; i = 0; diff --git a/lib/libc/net/if_nameindex.c b/lib/libc/net/if_nameindex.c index ba7f5e5525c..2acbeeb3f87 100644 --- a/lib/libc/net/if_nameindex.c +++ b/lib/libc/net/if_nameindex.c @@ -84,9 +84,9 @@ struct if_nameindex *if_nameindex(void) ifconf.ifc_buf = 0; if (ioctl(fd, SIOCGIFCONF, (void *)&ifconf)) goto ret; - if (ifconf->ifc_len < IFNAMSIZ) + if (ifconf.ifc_len < IFNAMSIZ) goto ret; - if (!(ifconf->ifc_buf = malloc(ifconf->ifc_len))) + if (!(ifconf.ifc_buf = malloc(ifconf.ifc_len))) goto ret; if (ioctl(fd, SIOCGIFCONF, (void *)&ifconf)) goto ret; diff --git a/lib/libc/net/if_nametoindex.c b/lib/libc/net/if_nametoindex.c index 2b9810d314f..ad05387e34b 100644 --- a/lib/libc/net/if_nametoindex.c +++ b/lib/libc/net/if_nametoindex.c @@ -56,9 +56,9 @@ unsigned int if_nametoindex(const char *name) ifconf.ifc_buf = 0; if (ioctl(fd, SIOCGIFCONF, (void *)&ifconf)) goto ret; - if (ifconf->ifc_len < IFNAMSIZ) + if (ifconf.ifc_len < IFNAMSIZ) goto ret; - if (!(ifconf->ifc_buf = malloc(ifconf->ifc_len))) + if (!(ifconf.ifc_buf = malloc(ifconf.ifc_len))) goto ret; if (ioctl(fd, SIOCGIFCONF, (void *)&ifconf)) goto ret; |