Skip to content
Snippets Groups Projects
Commit 8904064c authored by Yang Tse's avatar Yang Tse
Browse files

fix socket data type
parent 5b778a7c
Branches TFO-windows
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment