(svn r1970) Fix some warnings which Cygwin showed

This commit is contained in:
tron
2005-03-09 11:49:34 +00:00
parent a571f31c95
commit 34f14e657d
4 changed files with 22 additions and 21 deletions

View File

@@ -332,9 +332,8 @@ static void NetworkFindIPs(void)
// If something fails, make sure the list is empty
_network_ip_list[0] = 0;
if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
return;
}
sock = socket(AF_INET, SOCK_DGRAM, 0);
if (sock == INVALID_SOCKET) return;
#ifdef WIN32
// On windows it is easy