mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-30 22:13:49 +00:00
Merge pull request #59 from librehat/master
Fix mingw64 compiling errors
This commit is contained in:
+1
-1
@@ -132,7 +132,7 @@ static int new_value
|
||||
values_size = sizeof (*value->u.object.values) * value->u.object.length;
|
||||
|
||||
if (! ((*(void **) &value->u.object.values) = json_alloc
|
||||
(state, values_size + ((unsigned long) value->u.object.values), 0)) )
|
||||
(state, values_size + ((unsigned long long) value->u.object.values), 0)) )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
+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