(w32_socket) [_WIN32]: Change result to be unsigned to
match the WIN32 return value from socket().
This commit is contained in:
parent
81d87bae17
commit
c55abd60bd
1 changed files with 2 additions and 2 deletions
|
@ -94,14 +94,14 @@ sysdep_init(void)
|
||||||
int
|
int
|
||||||
w32_socket(int family, int sock_type, int protocol)
|
w32_socket(int family, int sock_type, int protocol)
|
||||||
{
|
{
|
||||||
int result;
|
unsigned int result;
|
||||||
|
|
||||||
result = socket(family, sock_type, protocol);
|
result = socket(family, sock_type, protocol);
|
||||||
if (result == INVALID_SOCKET) {
|
if (result == INVALID_SOCKET) {
|
||||||
errno = WSAGetLastError();
|
errno = WSAGetLastError();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return result;
|
return (int)result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue