From cfe67577db8d1872a9aaad7dd5db3b05b7b400dd Mon Sep 17 00:00:00 2001 From: cmetz <> Date: Wed, 23 Jun 1999 22:50:49 +0000 Subject: Compilation fixes. --- src/lib/libc/net/if_nameindex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libc/net/if_nameindex.c') 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) 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; -- cgit v1.2.3-55-g6feb