From c55abd60bd7668f3682461a2475fc47da2caae2f Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Sun, 16 Dec 2007 21:31:51 +0000 Subject: [PATCH] (w32_socket) [_WIN32]: Change result to be unsigned to match the WIN32 return value from socket(). --- src/client/sysdep_w32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/sysdep_w32.c b/src/client/sysdep_w32.c index 4b0925dc..63df32e4 100644 --- a/src/client/sysdep_w32.c +++ b/src/client/sysdep_w32.c @@ -94,14 +94,14 @@ sysdep_init(void) int w32_socket(int family, int sock_type, int protocol) { - int result; + unsigned int result; result = socket(family, sock_type, protocol); if (result == INVALID_SOCKET) { errno = WSAGetLastError(); return -1; } - return result; + return (int)result; } /*