diff options
author | nectar <nectar@FreeBSD.org> | 2003-02-16 17:29:11 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2003-02-16 17:29:11 +0000 |
commit | 832e8b7f9a7422b49453b7e389ec411d3037a50f (patch) | |
tree | 3b5579370346d51f378192429db2130e5e82a6e4 /lib/libc/net | |
parent | 81da3fbe2a40d9b80c8e96af564180f8aa22074e (diff) | |
download | FreeBSD-src-832e8b7f9a7422b49453b7e389ec411d3037a50f.zip FreeBSD-src-832e8b7f9a7422b49453b7e389ec411d3037a50f.tar.gz |
Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).
Only warnings that could be fixed without changing the generated object
code and without restructuring the source code have been handled.
Reviewed by: /sbin/md5
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/if_nametoindex.c | 3 | ||||
-rw-r--r-- | lib/libc/net/name6.c | 6 | ||||
-rw-r--r-- | lib/libc/net/res_query.c | 1 |
3 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/net/if_nametoindex.c b/lib/libc/net/if_nametoindex.c index f4748ca..d0ca521 100644 --- a/lib/libc/net/if_nametoindex.c +++ b/lib/libc/net/if_nametoindex.c @@ -28,6 +28,7 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "namespace.h" #include <sys/types.h> #include <sys/socket.h> #include <sys/sockio.h> @@ -37,6 +38,8 @@ __FBSDID("$FreeBSD$"); #include <stdlib.h> #include <string.h> #include <errno.h> +#include <unistd.h> +#include "un-namespace.h" /* * From RFC 2553: diff --git a/lib/libc/net/name6.c b/lib/libc/net/name6.c index ca4acb3..ae9eb31 100644 --- a/lib/libc/net/name6.c +++ b/lib/libc/net/name6.c @@ -177,16 +177,14 @@ static int _mapped_addr_enabled(void); static FILE *_files_open(int *errp); static int _files_ghbyname(void *, void *, va_list); static int _files_ghbyaddr(void *, void *, va_list); -static void _files_shent(int stayopen); -static void _files_ehent(void); #ifdef YP static int _nis_ghbyname(void *, void *, va_list); static int _nis_ghbyaddr(void *, void *, va_list); #endif static int _dns_ghbyname(void *, void *, va_list); static int _dns_ghbyaddr(void *, void *, va_list); -static void _dns_shent(int stayopen); -static void _dns_ehent(void); +static void _dns_shent(int stayopen) __unused; +static void _dns_ehent(void) __unused; #ifdef ICMPNL static int _icmp_ghbyaddr(void *, void *, va_list); #endif /* ICMPNL */ diff --git a/lib/libc/net/res_query.c b/lib/libc/net/res_query.c index 4dde3e4..cd3c832 100644 --- a/lib/libc/net/res_query.c +++ b/lib/libc/net/res_query.c @@ -87,6 +87,7 @@ __FBSDID("$FreeBSD$"); #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> #include "res_config.h" |