Commit 8904064c authored by Yang Tse's avatar Yang Tse
Browse files

fix socket data type
parent 5b778a7c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 {