svn commit: r221822 - head/lib/libfetch
Dag-Erling Smorgrav
des at FreeBSD.org
Thu May 12 21:26:42 UTC 2011
Author: des
Date: Thu May 12 21:26:42 2011
New Revision: 221822
URL: http://svn.freebsd.org/changeset/base/221822
Log:
Increase WARNS to 4.
Modified:
head/lib/libfetch/Makefile
head/lib/libfetch/ftp.c
head/lib/libfetch/http.c
Modified: head/lib/libfetch/Makefile
==============================================================================
--- head/lib/libfetch/Makefile Thu May 12 21:18:55 2011 (r221821)
+++ head/lib/libfetch/Makefile Thu May 12 21:26:42 2011 (r221822)
@@ -26,7 +26,7 @@ LDADD= -lmd
CFLAGS+= -DFTP_COMBINE_CWDS
CSTD?= c99
-WARNS?= 3
+WARNS?= 4
SHLIB_MAJOR= 6
Modified: head/lib/libfetch/ftp.c
==============================================================================
--- head/lib/libfetch/ftp.c Thu May 12 21:18:55 2011 (r221821)
+++ head/lib/libfetch/ftp.c Thu May 12 21:26:42 2011 (r221822)
@@ -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;
Modified: head/lib/libfetch/http.c
==============================================================================
--- head/lib/libfetch/http.c Thu May 12 21:18:55 2011 (r221821)
+++ head/lib/libfetch/http.c Thu May 12 21:26:42 2011 (r221822)
@@ -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
More information about the svn-src-head
mailing list