]> git.pond.sub.org Git - empserver/commitdiff
(w32_socket) [_WIN32]: Change result to be unsigned to
authorRon Koenderink <rkoenderink@yahoo.ca>
Sun, 16 Dec 2007 21:31:51 +0000 (21:31 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Sun, 16 Dec 2007 21:31:51 +0000 (21:31 +0000)
match the WIN32 return value from socket().

src/client/sysdep_w32.c

index 4b0925dc36c453201cc5184e417a9cfdfa97e397..63df32e4cd7dec4578818c942688d1dda37fef1d 100644 (file)
@@ -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;
 }
 
 /*