(w32_socket) [_WIN32]: Change result to be unsigned to

match the WIN32 return value from socket().
This commit is contained in:
Ron Koenderink 2007-12-16 21:31:51 +00:00
parent 81d87bae17
commit c55abd60bd

View file

@ -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;
} }
/* /*