diff options
author | Yang Tse <yangsita@gmail.com> | 2010-02-23 13:35:01 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-02-23 13:35:01 +0000 |
commit | 8904064c3a06416d87e81137a53366fd0723e879 (patch) | |
tree | 9af44f4985938085736746e84540e363d5c1173e | |
parent | 5b778a7ca4b09f7e50f00ab2624035bb9e4d3528 (diff) |
fix socket data type
-rw-r--r-- | tests/server/resolve.c | 4 |
1 files 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 { |