mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
Fix poll-related compile issues introduced with recent PTY changes
This commit is contained in:
committed by
Gregory Nutt
parent
11fe9378df
commit
8fa14b8fed
+2
-2
@@ -317,8 +317,8 @@ int fdesc_poll(int fd, FAR struct pollfd *fds, bool setup)
|
||||
/* The errno value has already been set */
|
||||
|
||||
int errorcode = get_errno();
|
||||
DEBUGASSERT(errcode > 0);
|
||||
return -errcode;
|
||||
DEBUGASSERT(errorcode > 0);
|
||||
return -errorcode;
|
||||
}
|
||||
|
||||
/* Let file_poll() do the rest */
|
||||
|
||||
Reference in New Issue
Block a user