mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-22 15:16:58 +00:00
Fix compile errors with mingw64
Fix two errors:
win32.c:36:9: error: format '%s' expects argument of type 'char *', but argument 5 has type 'void **' [-Werror=format=]
LOGE("%s: %s", s, msg);
^
and
win32.c:47:9: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' [-Werror=format=]
LOGE("ioctlsocket failed with error: %ld\n", iResult);
^
This commit is contained in:
+2
-2
@@ -33,7 +33,7 @@ void ss_error(const char *s)
|
||||
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
||||
(LPTSTR) &msg, 0, NULL);
|
||||
if (msg != NULL) {
|
||||
LOGE("%s: %s", s, msg);
|
||||
LOGE("%s: %s", s, (char *)msg);
|
||||
LocalFree(msg);
|
||||
}
|
||||
}
|
||||
@@ -41,7 +41,7 @@ void ss_error(const char *s)
|
||||
int setnonblocking(int fd)
|
||||
{
|
||||
u_long iMode = 0;
|
||||
int iResult;
|
||||
long int iResult;
|
||||
iResult = ioctlsocket(fd, FIONBIO, &iMode);
|
||||
if (iResult != NO_ERROR) {
|
||||
LOGE("ioctlsocket failed with error: %ld\n", iResult);
|
||||
|
||||
Reference in New Issue
Block a user