#include "quakedef.h"
#include "winquake.h"
-extern cvar_t hostname;
-
#define MAXHOSTNAMELEN 256
static int net_acceptsocket = -1; // socket for fielding new connections
MSG msg;
BOOL ret;
- if ((Sys_FloatTime() - blocktime) > 2.0)
+ if ((Sys_DoubleTime() - blocktime) > 2.0)
{
WSACancelBlockingCall();
- return FALSE;
+ return false;
}
/* get the next message, if any */
DispatchMessage(&msg);
}
- /* TRUE if we got a message */
+ /* true if we got a message */
return ret;
}
-void WINS_GetLocalAddress()
+void WINS_GetLocalAddress(void)
{
struct hostent *local = NULL;
char buff[MAXHOSTNAMELEN];
if (pgethostname(buff, MAXHOSTNAMELEN) == SOCKET_ERROR)
return;
- blocktime = Sys_FloatTime();
+ blocktime = Sys_DoubleTime();
WSASetBlockingHook(BlockingHook);
local = pgethostbyname(buff);
WSAUnhookBlockingHook();