ws2_32/socket.c: Fix compiler warnings with flag -Wcast-qual

Mikhail Maroukhine mikolg at yandex.ru
Sun Mar 28 09:43:07 CDT 2010


---
 dlls/ws2_32/socket.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index ac9fe75..e4ee97c 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -3352,7 +3352,7 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
                 return SOCKET_ERROR;
             }
             get_per_thread_data()->opentype = *(const int *)optval;
-            TRACE("setting global SO_OPENTYPE = 0x%x\n", *((int*)optval) );
+            TRACE("setting global SO_OPENTYPE = 0x%x\n", *((const int*)optval) );
             return 0;
 
 #ifdef SO_RCVTIMEO
-- 
1.6.3.3


------------D87oq9cRFajNj1UCbbPFYZ--




More information about the wine-patches mailing list