diff options
author | des <des@FreeBSD.org> | 2011-05-12 21:26:42 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2011-05-12 21:26:42 +0000 |
commit | 9740a3f77de90aba35be0ae26247c6c2e74a6258 (patch) | |
tree | 301846b6c31e930c5ea238dac1576fb85693a1d1 | |
parent | fb4144ec689b0c1b64ae24752eee6cffccdde5f1 (diff) | |
download | FreeBSD-src-9740a3f77de90aba35be0ae26247c6c2e74a6258.zip FreeBSD-src-9740a3f77de90aba35be0ae26247c6c2e74a6258.tar.gz |
Increase WARNS to 4.
-rw-r--r-- | lib/libfetch/Makefile | 2 | ||||
-rw-r--r-- | lib/libfetch/ftp.c | 2 | ||||
-rw-r--r-- | lib/libfetch/http.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/libfetch/Makefile b/lib/libfetch/Makefile index 3794f2f..12495b2 100644 --- a/lib/libfetch/Makefile +++ b/lib/libfetch/Makefile @@ -26,7 +26,7 @@ LDADD= -lmd CFLAGS+= -DFTP_COMBINE_CWDS CSTD?= c99 -WARNS?= 3 +WARNS?= 4 SHLIB_MAJOR= 6 diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index d981006..04ae07e 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -127,7 +127,7 @@ unmappedaddr(struct sockaddr_in6 *sin6) !IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr)) return; sin4 = (struct sockaddr_in *)sin6; - addr = *(u_int32_t *)&sin6->sin6_addr.s6_addr[12]; + addr = *(u_int32_t *)(uintptr_t)&sin6->sin6_addr.s6_addr[12]; port = sin6->sin6_port; memset(sin4, 0, sizeof(struct sockaddr_in)); sin4->sin_addr.s_addr = addr; diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index c6cb054..309cbf2 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -1087,7 +1087,7 @@ out: * Digest response: the code to compute the digest is taken from the * sample implementation in RFC2616 */ -#define IN +#define IN const #define OUT #define HASHLEN 16 |