[quake3-commits] r2286 - trunk/code/qcommon
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Jun 19 12:12:16 EDT 2012
Author: ztm
Date: 2012-06-19 12:12:16 -0400 (Tue, 19 Jun 2012)
New Revision: 2286
Modified:
trunk/code/qcommon/net_ip.c
Log:
#5672 - Fixed incorrect type usage in NET_Sleep(), patch from ?\195?\150zkan Sezer.
Modified: trunk/code/qcommon/net_ip.c
===================================================================
--- trunk/code/qcommon/net_ip.c 2012-06-19 15:56:21 UTC (rev 2285)
+++ trunk/code/qcommon/net_ip.c 2012-06-19 16:12:16 UTC (rev 2286)
@@ -1655,7 +1655,8 @@
{
struct timeval timeout;
fd_set fdr;
- int highestfd = -1, retval;
+ int retval;
+ SOCKET highestfd = INVALID_SOCKET;
if(msec < 0)
msec = 0;
@@ -1672,7 +1673,7 @@
{
FD_SET(ip6_socket, &fdr);
- if((int)ip6_socket > highestfd)
+ if(ip6_socket > highestfd)
highestfd = ip6_socket;
}
@@ -1680,7 +1681,7 @@
timeout.tv_usec = (msec%1000)*1000;
#ifdef _WIN32
- if(highestfd < 0)
+ if(highestfd == INVALID_SOCKET)
{
// windows ain't happy when select is called without valid FDs
SleepEx(msec, 0);
More information about the quake3-commits
mailing list