Fixed some BAD coding (was redeclaring errno).

This commit is contained in:
James Brown 2000-05-13 04:03:04 +00:00
parent 19571d83d5
commit 134a94cd8a

View file

@ -182,18 +182,18 @@ qboolean NET_GetPacket (void)
if (ret == -1) if (ret == -1)
{ {
int errno = WSAGetLastError(); int wserrno = WSAGetLastError();
if (errno == WSAEWOULDBLOCK) if (wserrno == WSAEWOULDBLOCK)
return false; return false;
if (errno == WSAEMSGSIZE) { if (wserrno == WSAEMSGSIZE) {
Con_Printf ("Warning: Oversize packet from %s\n", Con_Printf ("Warning: Oversize packet from %s\n",
NET_AdrToString (net_from)); NET_AdrToString (net_from));
return false; return false;
} }
Sys_Error ("NET_GetPacket: %s", strerror(errno)); Sys_Error ("NET_GetPacket: %s", strerror(wserrno));
} }
net_message.cursize = ret; net_message.cursize = ret;