aboutsummaryrefslogtreecommitdiff
path: root/lib/isc/win32/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/isc/win32/net.c')
-rw-r--r--lib/isc/win32/net.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/isc/win32/net.c b/lib/isc/win32/net.c
index 240c78336c07..12876da2b880 100644
--- a/lib/isc/win32/net.c
+++ b/lib/isc/win32/net.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004, 2005, 2007, 2008 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004, 2005, 2007-2009, 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: net.c,v 1.18 2008/08/08 05:06:49 marka Exp $ */
+/* $Id$ */
#include <config.h>
@@ -170,7 +170,8 @@ try_ipv6only(void) {
}
on = 1;
- if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, (char *)&on, sizeof(on)) < 0) {
+ if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, (const char *)&on,
+ sizeof(on)) < 0) {
ipv6only_result = ISC_R_NOTFOUND;
goto close;
}
@@ -193,7 +194,8 @@ try_ipv6only(void) {
}
on = 1;
- if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, (char *)&on, sizeof(on)) < 0) {
+ if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, (const char *)&on,
+ sizeof(on)) < 0) {
ipv6only_result = ISC_R_NOTFOUND;
goto close;
}