mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-03-25 09:20:46 +00:00
Fixed some BAD coding (was redeclaring errno).
This commit is contained in:
parent
19571d83d5
commit
134a94cd8a
1 changed files with 4 additions and 4 deletions
|
@ -182,18 +182,18 @@ qboolean NET_GetPacket (void)
|
|||
|
||||
if (ret == -1)
|
||||
{
|
||||
int errno = WSAGetLastError();
|
||||
int wserrno = WSAGetLastError();
|
||||
|
||||
if (errno == WSAEWOULDBLOCK)
|
||||
if (wserrno == WSAEWOULDBLOCK)
|
||||
return false;
|
||||
if (errno == WSAEMSGSIZE) {
|
||||
if (wserrno == WSAEMSGSIZE) {
|
||||
Con_Printf ("Warning: Oversize packet from %s\n",
|
||||
NET_AdrToString (net_from));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Sys_Error ("NET_GetPacket: %s", strerror(errno));
|
||||
Sys_Error ("NET_GetPacket: %s", strerror(wserrno));
|
||||
}
|
||||
|
||||
net_message.cursize = ret;
|
||||
|
|
Loading…
Reference in a new issue