mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-16 22:38:41 +08:00
Reserver the name 'err' for other purposes
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user