Don't name local variables errno.

This commit is contained in:
Marcus Sundberg 2000-01-07 01:17:53 +00:00
parent a5a502ff97
commit 18e36fb5d1

View file

@ -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;