mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
net_socket must be "int" for sane systems
This commit is contained in:
parent
114843d7b8
commit
d63e7b609e
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue