fix socket data type

This commit is contained in:
Yang Tse 2010-02-23 13:35:01 +00:00
parent 5b778a7ca4
commit 8904064c3a
1 changed files with 2 additions and 2 deletions

View File

@ -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 {