wininet & winhttp: Fix a pointer type mismatch warning when compiling on Windows...
authorFrancois Gouget <fgouget@free.fr>
Mon, 8 Dec 2008 08:28:43 +0000 (09:28 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 8 Dec 2008 11:05:57 +0000 (12:05 +0100)
dlls/winhttp/net.c
dlls/wininet/netconnection.c

index b34305058c117aff2b5c5d99f2e47096dc373e51..e9e12f7ded1255636333c3137365e81ec81913f4 100644 (file)
@@ -558,7 +558,7 @@ DWORD netconn_set_timeout( netconn_t *netconn, BOOL send, int value )
     tv.tv_sec = value / 1000;
     tv.tv_usec = (value % 1000) * 1000;
 
-    if ((res = setsockopt( netconn->socket, SOL_SOCKET, send ? SO_SNDTIMEO : SO_RCVTIMEO, &tv, sizeof(tv) ) == -1))
+    if ((res = setsockopt( netconn->socket, SOL_SOCKET, send ? SO_SNDTIMEO : SO_RCVTIMEO, (void*)&tv, sizeof(tv) ) == -1))
     {
         WARN("setsockopt failed (%s)\n", strerror( errno ));
         return sock_get_error( errno );
index 79e96a301fabd5e7fe27d8c8fe24040560fc3ee5..e688a51fa3b885031cbf650507a1ecee20a6ddff 100644 (file)
@@ -769,7 +769,7 @@ DWORD NETCON_set_timeout(WININET_NETCONNECTION *connection, BOOL send, int value
     tv.tv_usec = (value % 1000) * 1000;
 
     result = setsockopt(connection->socketFD, SOL_SOCKET,
-                        send ? SO_SNDTIMEO : SO_RCVTIMEO, &tv,
+                        send ? SO_SNDTIMEO : SO_RCVTIMEO, (void*)&tv,
                         sizeof(tv));
 
     if (result == -1)