From fa5676e0ca85e24f2c21ec7e222f38d0ccce8dd9 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 4 Jan 2014 09:26:17 +0000 Subject: [PATCH] Fix MSVC build warning: C4133: 'function' : incompatible types - from 'int *' to 'char *' with typecast. --- src/xpdev/ini_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xpdev/ini_file.c b/src/xpdev/ini_file.c index 6e8dc46bfe..a9eab3b854 100644 --- a/src/xpdev/ini_file.c +++ b/src/xpdev/ini_file.c @@ -1300,7 +1300,7 @@ int iniGetSocketOptions(str_list_t list, const char* section, SOCKET sock union xp_sockaddr addr; len=sizeof(type); - if((result=getsockopt(sock, SOL_SOCKET, SO_TYPE, &type, &len)) != 0) { + if((result=getsockopt(sock, SOL_SOCKET, SO_TYPE, (char*)&type, &len)) != 0) { safe_snprintf(error,errlen,"%d getting socket type", ERROR_VALUE); return(result); } -- GitLab