mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-06-01 09:32:36 +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)
|
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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue