diff options
| author | deraadt <> | 2001-07-04 19:43:16 +0000 | 
|---|---|---|
| committer | deraadt <> | 2001-07-04 19:43:16 +0000 | 
| commit | 4f70c6d1f894b725caae01ff86cc2448630c66f1 (patch) | |
| tree | 4d1d3a372ea98012054f4e159793bb3d7c996fa6 /src/lib/libc | |
| parent | d7bfd098a5d6ef18b075d0ec5ad9c46ffd81932d (diff) | |
| download | openbsd-4f70c6d1f894b725caae01ff86cc2448630c66f1.tar.gz openbsd-4f70c6d1f894b725caae01ff86cc2448630c66f1.tar.bz2 openbsd-4f70c6d1f894b725caae01ff86cc2448630c66f1.zip | |
fix unused code path; karls@inet.no
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/net/getifaddrs.c | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/src/lib/libc/net/getifaddrs.c b/src/lib/libc/net/getifaddrs.c index 5be334cb6c..5c9c337f71 100644 --- a/src/lib/libc/net/getifaddrs.c +++ b/src/lib/libc/net/getifaddrs.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: getifaddrs.c,v 1.4 2001/06/27 00:58:55 lebel Exp $ */ | 1 | /* $OpenBSD: getifaddrs.c,v 1.5 2001/07/04 19:43:16 deraadt Exp $ */ | 
| 2 | 2 | ||
| 3 | /* | 3 | /* | 
| 4 | * Copyright (c) 1995, 1999 | 4 | * Copyright (c) 1995, 1999 | 
| @@ -43,6 +43,7 @@ | |||
| 43 | #include <ifaddrs.h> | 43 | #include <ifaddrs.h> | 
| 44 | #include <stdlib.h> | 44 | #include <stdlib.h> | 
| 45 | #include <string.h> | 45 | #include <string.h> | 
| 46 | #include <unistd.h> | ||
| 46 | 47 | ||
| 47 | #if !defined(AF_LINK) | 48 | #if !defined(AF_LINK) | 
| 48 | #define SA_LEN(sa) sizeof(struct sockaddr) | 49 | #define SA_LEN(sa) sizeof(struct sockaddr) | 
| @@ -97,17 +98,17 @@ getifaddrs(struct ifaddrs **pif) | |||
| 97 | struct ifa_msghdr *ifam; | 98 | struct ifa_msghdr *ifam; | 
| 98 | struct sockaddr_dl *dl; | 99 | struct sockaddr_dl *dl; | 
| 99 | struct sockaddr *sa; | 100 | struct sockaddr *sa; | 
| 100 | struct ifaddrs *ifa, *ift; | ||
| 101 | u_short index = 0; | 101 | u_short index = 0; | 
| 102 | size_t len, alen; | ||
| 102 | #else /* NET_RT_IFLIST */ | 103 | #else /* NET_RT_IFLIST */ | 
| 103 | char buf[1024]; | 104 | char buf[1024]; | 
| 104 | int m, sock; | 105 | int sock; | 
| 105 | struct ifconf ifc; | 106 | struct ifconf ifc; | 
| 106 | struct ifreq *ifr; | 107 | struct ifreq *ifr; | 
| 107 | struct ifreq *lifr; | 108 | struct ifreq *lifr; | 
| 108 | #endif /* NET_RT_IFLIST */ | 109 | #endif /* NET_RT_IFLIST */ | 
| 110 | struct ifaddrs *ifa, *ift; | ||
| 109 | int i; | 111 | int i; | 
| 110 | size_t len, alen; | ||
| 111 | char *data; | 112 | char *data; | 
| 112 | char *names; | 113 | char *names; | 
| 113 | 114 | ||
