From: Daniel Stenberg Date: Wed, 31 Mar 2004 10:34:53 +0000 (+0000) Subject: Andrés García fixed a warning in the ioctlsocket() usage. X-Git-Tag: curl-7_11_2~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40d9855df2e547e182d4c4798c7b75967b9643eb;p=thirdparty%2Fcurl.git Andrés García fixed a warning in the ioctlsocket() usage. --- diff --git a/acinclude.m4 b/acinclude.m4 index 8730a83757..439961f5dd 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -64,7 +64,7 @@ dnl the code was bad, try a different program now, test 3 ],[ /* ioctlsocket source code */ int socket; - int flags = ioctlsocket(socket, FIONBIO, &flags); + unsigned long flags = ioctlsocket(socket, FIONBIO, &flags); ],[ dnl ioctlsocket test was good nonblock="ioctlsocket" diff --git a/lib/connect.c b/lib/connect.c index 0d42ca14dc..b58a8be5d3 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -147,7 +147,7 @@ int Curl_nonblock(curl_socket_t sockfd, /* operate on this */ #ifdef HAVE_IOCTLSOCKET /* Windows? */ - int flags; + unsigned long flags; flags = nonblock; return ioctlsocket(sockfd, FIONBIO, &flags); #define SETBLOCK 3