Fix poll-related compile issues introduced with recent PTY changes

This commit is contained in:
Alan Carvalho de Assis
2016-07-16 07:03:38 -06:00
committed by Gregory Nutt
parent 11fe9378df
commit 8fa14b8fed
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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 */