VDev POSIX: Fix non-POSIX conformant return value handling

This commit is contained in:
Lorenz Meier
2015-06-19 11:52:07 -07:00
parent d81d20ff0e
commit 27cec4a977
+1 -1
View File
@@ -201,7 +201,7 @@ int px4_ioctl(int fd, int cmd, unsigned long arg)
px4_errno = -ret;
}
return (ret == 0) ? PX4_OK : PX4_ERROR;
return ret;
}
int px4_poll(px4_pollfd_struct_t *fds, nfds_t nfds, int timeout)