]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
eliminated compiler warning
authorAndreas Gustafsson <source@isc.org>
Tue, 19 Dec 2000 19:29:13 +0000 (19:29 +0000)
committerAndreas Gustafsson <source@isc.org>
Tue, 19 Dec 2000 19:29:13 +0000 (19:29 +0000)
lib/isc/unix/net.c

index 95cd9ad43f77f0b025230ca28e2005b555ce74c7..41ed626595290e5f366dcbade9b55a45a71c203b 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: net.c,v 1.15 2000/12/19 01:36:50 bwelling Exp $ */
+/* $Id: net.c,v 1.16 2000/12/19 19:29:13 gson Exp $ */
 
 #include <config.h>
 
@@ -77,8 +77,8 @@ try_proto(int domain) {
                /*
                 * Check to see if IPv6 is broken, as is common on Linux.
                 */
-               len = sizeof(struct sockaddr_in6);
-               if (getsockname(s, &sin6, (void *)&len) < 0) {
+               len = sizeof(sin6);
+               if (getsockname(s, (struct sockaddr *)&sin6, (void *)&len) < 0) {
                        isc_log_write(isc_lctx, ISC_LOGCATEGORY_GENERAL,
                                      ISC_LOGMODULE_SOCKET, ISC_LOG_ERROR,
                                      "Retrieving the address of an IPv6 "