diff options
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/net/ethers.c | 7 | ||||
| -rw-r--r-- | src/lib/libc/net/getaddrinfo.c | 5 | ||||
| -rw-r--r-- | src/lib/libc/net/if_indextoname.c | 1 | ||||
| -rw-r--r-- | src/lib/libc/net/if_nameindex.c | 2 | ||||
| -rw-r--r-- | src/lib/libc/net/if_nametoindex.c | 1 |
5 files changed, 11 insertions, 5 deletions
diff --git a/src/lib/libc/net/ethers.c b/src/lib/libc/net/ethers.c index 94ae5c996a..1124e43253 100644 --- a/src/lib/libc/net/ethers.c +++ b/src/lib/libc/net/ethers.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ethers.c,v 1.10 1998/11/18 23:28:54 deraadt Exp $ */ | 1 | /* $OpenBSD: ethers.c,v 1.11 2000/08/22 19:04:41 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> | 4 | * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> |
| @@ -34,7 +34,7 @@ | |||
| 34 | */ | 34 | */ |
| 35 | 35 | ||
| 36 | #if defined(LIBC_SCCS) && !defined(lint) | 36 | #if defined(LIBC_SCCS) && !defined(lint) |
| 37 | static char rcsid[] = "$OpenBSD: ethers.c,v 1.10 1998/11/18 23:28:54 deraadt Exp $"; | 37 | static char rcsid[] = "$OpenBSD: ethers.c,v 1.11 2000/08/22 19:04:41 deraadt Exp $"; |
| 38 | #endif /* LIBC_SCCS and not lint */ | 38 | #endif /* LIBC_SCCS and not lint */ |
| 39 | 39 | ||
| 40 | #include <sys/types.h> | 40 | #include <sys/types.h> |
| @@ -49,6 +49,9 @@ static char rcsid[] = "$OpenBSD: ethers.c,v 1.10 1998/11/18 23:28:54 deraadt Exp | |||
| 49 | #include <stdlib.h> | 49 | #include <stdlib.h> |
| 50 | #include <string.h> | 50 | #include <string.h> |
| 51 | #include <ctype.h> | 51 | #include <ctype.h> |
| 52 | #ifdef YP | ||
| 53 | #include <rpcsvc/ypclnt.h> | ||
| 54 | #endif | ||
| 52 | 55 | ||
| 53 | #ifndef _PATH_ETHERS | 56 | #ifndef _PATH_ETHERS |
| 54 | #define _PATH_ETHERS "/etc/ethers" | 57 | #define _PATH_ETHERS "/etc/ethers" |
diff --git a/src/lib/libc/net/getaddrinfo.c b/src/lib/libc/net/getaddrinfo.c index a443d8c9f2..fc097360bf 100644 --- a/src/lib/libc/net/getaddrinfo.c +++ b/src/lib/libc/net/getaddrinfo.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: getaddrinfo.c,v 1.25 2000/07/09 04:48:35 itojun Exp $ */ | 1 | /* $OpenBSD: getaddrinfo.c,v 1.26 2000/08/22 19:04:42 deraadt Exp $ */ |
| 2 | /* $KAME: getaddrinfo.c,v 1.30 2000/07/09 04:37:25 itojun Exp $ */ | 2 | /* $KAME: getaddrinfo.c,v 1.30 2000/07/09 04:37:25 itojun Exp $ */ |
| 3 | 3 | ||
| 4 | /* | 4 | /* |
| @@ -103,8 +103,9 @@ | |||
| 103 | 103 | ||
| 104 | #ifdef YP | 104 | #ifdef YP |
| 105 | #include <rpc/rpc.h> | 105 | #include <rpc/rpc.h> |
| 106 | #include <rpcsvc/yp_prot.h> | 106 | #include <rpcsvc/yp.h> |
| 107 | #include <rpcsvc/ypclnt.h> | 107 | #include <rpcsvc/ypclnt.h> |
| 108 | #include "ypinternal.h" | ||
| 108 | #endif | 109 | #endif |
| 109 | 110 | ||
| 110 | #define SUCCESS 0 | 111 | #define SUCCESS 0 |
diff --git a/src/lib/libc/net/if_indextoname.c b/src/lib/libc/net/if_indextoname.c index 0b71010ace..4b38f851a1 100644 --- a/src/lib/libc/net/if_indextoname.c +++ b/src/lib/libc/net/if_indextoname.c | |||
| @@ -38,6 +38,7 @@ | |||
| 38 | #include <net/if.h> | 38 | #include <net/if.h> |
| 39 | #include <net/if_dl.h> | 39 | #include <net/if_dl.h> |
| 40 | #include <errno.h> | 40 | #include <errno.h> |
| 41 | #include <unistd.h> | ||
| 41 | #include <string.h> | 42 | #include <string.h> |
| 42 | 43 | ||
| 43 | static char __name[IFNAMSIZ]; | 44 | static char __name[IFNAMSIZ]; |
diff --git a/src/lib/libc/net/if_nameindex.c b/src/lib/libc/net/if_nameindex.c index 8643397db2..9e4a71faa9 100644 --- a/src/lib/libc/net/if_nameindex.c +++ b/src/lib/libc/net/if_nameindex.c | |||
| @@ -38,6 +38,7 @@ | |||
| 38 | #include <net/if.h> | 38 | #include <net/if.h> |
| 39 | #include <net/if_dl.h> | 39 | #include <net/if_dl.h> |
| 40 | #include <errno.h> | 40 | #include <errno.h> |
| 41 | #include <unistd.h> | ||
| 41 | #include <string.h> | 42 | #include <string.h> |
| 42 | 43 | ||
| 43 | struct if_nameindex * | 44 | struct if_nameindex * |
| @@ -48,7 +49,6 @@ if_nameindex(void) | |||
| 48 | struct ifconf ifconf; | 49 | struct ifconf ifconf; |
| 49 | char lastname[IFNAMSIZ], *c, *inbuf; | 50 | char lastname[IFNAMSIZ], *c, *inbuf; |
| 50 | struct if_nameindex *n; | 51 | struct if_nameindex *n; |
| 51 | struct sockaddr_dl *sd; | ||
| 52 | struct sockaddr *sa; | 52 | struct sockaddr *sa; |
| 53 | void *p; | 53 | void *p; |
| 54 | 54 | ||
diff --git a/src/lib/libc/net/if_nametoindex.c b/src/lib/libc/net/if_nametoindex.c index d41f8ecad1..3a83714376 100644 --- a/src/lib/libc/net/if_nametoindex.c +++ b/src/lib/libc/net/if_nametoindex.c | |||
| @@ -38,6 +38,7 @@ | |||
| 38 | #include <net/if.h> | 38 | #include <net/if.h> |
| 39 | #include <net/if_dl.h> | 39 | #include <net/if_dl.h> |
| 40 | #include <string.h> | 40 | #include <string.h> |
| 41 | #include <unistd.h> | ||
| 41 | #include <errno.h> | 42 | #include <errno.h> |
| 42 | 43 | ||
| 43 | unsigned int | 44 | unsigned int |
