From 8904064c3a06416d87e81137a53366fd0723e879 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 23 Feb 2010 13:35:01 +0000 Subject: fix socket data type --- tests/server/resolve.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/server/resolve.c b/tests/server/resolve.c index 3092b8cbc..7b4af2b11 100644 --- a/tests/server/resolve.c +++ b/tests/server/resolve.c @@ -131,8 +131,8 @@ int main(int argc, char *argv[]) else { #ifdef ENABLE_IPV6 /* Check that the system has IPv6 enabled before checking the resolver */ - int s = socket(PF_INET6, SOCK_DGRAM, 0); - if(s == -1) + curl_socket_t s = socket(PF_INET6, SOCK_DGRAM, 0); + if(s == CURL_SOCKET_BAD) /* an ipv6 address was requested and we can't get/use one */ rc = -1; else { -- cgit v1.2.3