mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-25 05:11:23 +00:00
Don't name local variables errno.
This commit is contained in:
parent
a5a502ff97
commit
18e36fb5d1
1 changed files with 3 additions and 3 deletions
|
@ -243,9 +243,9 @@ int WIPX_Read (int handle, byte *buf, int len, struct qsockaddr *addr)
|
|||
ret = precvfrom (socket, packetBuffer, len+4, 0, (struct sockaddr *)addr, &addrlen);
|
||||
if (ret == -1)
|
||||
{
|
||||
int errno = pWSAGetLastError();
|
||||
int err = pWSAGetLastError();
|
||||
|
||||
if (errno == WSAEWOULDBLOCK || errno == WSAECONNREFUSED)
|
||||
if (err == WSAEWOULDBLOCK || err == WSAECONNREFUSED)
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
@ -357,7 +357,7 @@ int WIPX_GetSocketAddr (int handle, struct qsockaddr *addr)
|
|||
Q_memset(addr, 0, sizeof(struct qsockaddr));
|
||||
if(pgetsockname(socket, (struct sockaddr *)addr, &addrlen) != 0)
|
||||
{
|
||||
int errno = pWSAGetLastError();
|
||||
int err = pWSAGetLastError();
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue