Reserver the name 'err' for other purposes

This commit is contained in:
Gregory Nutt
2016-06-11 14:49:55 -06:00
parent 468bdcf8e6
commit e82a54bf18
18 changed files with 100 additions and 94 deletions

View File

@@ -270,9 +270,9 @@ static int lesp_low_level_read(uint8_t* buf, int size)
ret = poll(fds, 1, lespPOLLING_TIME_MS);
if (ret < 0)
{
int err = errno;
ndbg("worker read Error %d (errno %d)\n", ret, err);
UNUSED(err);
int errcode = errno;
ndbg("worker read Error %d (errno %d)\n", ret, errcode);
UNUSED(errcode);
}
else if ((fds[0].revents & POLLERR) && (fds[0].revents & POLLHUP))
{