net_socket must be "int" for sane systems

This commit is contained in:
Bill Currie 2005-01-26 01:19:36 +00:00
parent 114843d7b8
commit d63e7b609e
2 changed files with 3 additions and 3 deletions

View file

@ -78,7 +78,7 @@ void Sys_RegisterShutdown (void (*func) (void));
double Sys_DoubleTime (void);
void Sys_TimeOfDay(date_t *date);
int Sys_CheckInput (int idle, unsigned int net_socket);
int Sys_CheckInput (int idle, int net_socket);
const char *Sys_ConsoleInput (void);
void Sys_Sleep (void);

View file

@ -504,7 +504,7 @@ Sys_DebugLog (const char *file, const char *fmt, ...)
}
int
Sys_CheckInput (int idle, unsigned int net_socket)
Sys_CheckInput (int idle, int net_socket)
{
fd_set fdset;
int res;
@ -538,7 +538,7 @@ Sys_CheckInput (int idle, unsigned int net_socket)
FD_SET (0, &fdset);
#endif
if (net_socket >= 0)
FD_SET (net_socket, &fdset);
FD_SET (((unsigned) net_socket), &fdset); // cast needed for windows
if (!idle || !sys_dead_sleep->int_val)
timeout = &_timeout;