From: Michael Adam Date: Fri, 29 Feb 2008 12:35:16 +0000 (+0100) Subject: Eliminate tons of build warnings on non-IPV6 system. X-Git-Tag: samba-3.3.0pre1~3436^2~71 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee4810099c2d26a0ebab3c41a95bc6b57921683d;p=thirdparty%2Fsamba.git Eliminate tons of build warnings on non-IPV6 system. Michael --- diff --git a/source/include/includes.h b/source/include/includes.h index 269baa5a9ca..36c71d75337 100644 --- a/source/include/includes.h +++ b/source/include/includes.h @@ -1289,4 +1289,9 @@ void exit_server_fault(void) NORETURN_ATTRIBUTE ; #include "libnscd.h" #endif +#if defined(HAVE_IPV6) +void in6_addr_to_sockaddr_storage(struct sockaddr_storage *ss, + struct in6_addr ip); +#endif + #endif /* _INCLUDES_H */ diff --git a/source/lib/util_sock.c b/source/lib/util_sock.c index a7c35c48878..2a659438720 100644 --- a/source/lib/util_sock.c +++ b/source/lib/util_sock.c @@ -370,7 +370,7 @@ void in_addr_to_sockaddr_storage(struct sockaddr_storage *ss, Convert an IPv6 struct in_addr to a struct sockaddr_storage. ********************************************************************/ -void in6_addr_to_sockaddr_storage(struct sockaddr_storage *ss, + void in6_addr_to_sockaddr_storage(struct sockaddr_storage *ss, struct in6_addr ip) { struct sockaddr_in6 *sa = (struct sockaddr_in6 *)ss;