diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-07-04 19:43:17 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-07-04 19:43:17 +0000 |
commit | 8913ac45b4b4b34daba5cd5c7651f9a04c95af95 (patch) | |
tree | bcd47838bc7fb2958fcb9a168b397c6fdc5ecf32 | |
parent | 8c8deb8c36aab4146522f000e24bb82b567d524d (diff) |
fix unused code path; karls@inet.no
-rw-r--r-- | lib/libc/net/getifaddrs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc/net/getifaddrs.c b/lib/libc/net/getifaddrs.c index 5be334cb6c4..5c9c337f711 100644 --- a/lib/libc/net/getifaddrs.c +++ b/lib/libc/net/getifaddrs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getifaddrs.c,v 1.4 2001/06/27 00:58:55 lebel Exp $ */ +/* $OpenBSD: getifaddrs.c,v 1.5 2001/07/04 19:43:16 deraadt Exp $ */ /* * Copyright (c) 1995, 1999 @@ -43,6 +43,7 @@ #include <ifaddrs.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> #if !defined(AF_LINK) #define SA_LEN(sa) sizeof(struct sockaddr) @@ -97,17 +98,17 @@ getifaddrs(struct ifaddrs **pif) struct ifa_msghdr *ifam; struct sockaddr_dl *dl; struct sockaddr *sa; - struct ifaddrs *ifa, *ift; u_short index = 0; + size_t len, alen; #else /* NET_RT_IFLIST */ char buf[1024]; - int m, sock; + int sock; struct ifconf ifc; struct ifreq *ifr; struct ifreq *lifr; #endif /* NET_RT_IFLIST */ + struct ifaddrs *ifa, *ift; int i; - size_t len, alen; char *data; char *names; |