From 134a94cd8a42cdcbc2cfb5d66e9c3c785e3802c3 Mon Sep 17 00:00:00 2001 From: James Brown Date: Sat, 13 May 2000 04:03:04 +0000 Subject: [PATCH] Fixed some BAD coding (was redeclaring errno). --- source/net_wins.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/net_wins.c b/source/net_wins.c index 2d8f670..7c12cbb 100644 --- a/source/net_wins.c +++ b/source/net_wins.c @@ -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;