// Written by Forest Hale 2003-06-15 and placed into public domain.
+#ifndef STANDALONETEST
+#include "quakedef.h"
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
// for Z_Malloc/Z_Free in quake
#ifndef STANDALONETEST
-#include "quakedef.h"
#include "zone.h"
#include "sys.h"
#include "netconn.h"
{
if (lastfd < s->inetsocket)
lastfd = s->inetsocket;
- FD_SET(s->inetsocket, &fdreadset);
+ FD_SET((unsigned int)s->inetsocket, &fdreadset);
}
}
tv.tv_sec = microseconds / 1000000;
{
if (SOCKETERRNO == EWOULDBLOCK)
return 0;
- Con_Printf("LHNET_Read: sendto returned error: %s\n", LHNETPRIVATE_StrError());
+ Con_Printf("LHNET_Write: sendto returned error: %s\n", LHNETPRIVATE_StrError());
}
}
else if (lhnetsocket->address.addresstype == LHNETADDRESSTYPE_INET6)
{
if (SOCKETERRNO == EWOULDBLOCK)
return 0;
- Con_Printf("LHNET_Read: sendto returned error: %s\n", LHNETPRIVATE_StrError());
+ Con_Printf("LHNET_Write: sendto returned error: %s\n", LHNETPRIVATE_StrError());
}
}
return value;