Fix usage of errno in POSIX semaphore error handling

Previous commit 98ae0186e9 changed the err variable to errno, which is not the return value we are looking for.
This commit is contained in:
Lorenz Meier
2019-01-01 16:23:46 +01:00
parent 5b2661e0f8
commit 0d0a556847

View File

@@ -142,7 +142,7 @@ int px4_sem_timedwait(px4_sem_t *s, const struct timespec *abstime)
int err = ret;
if (err != 0 && errno != ETIMEDOUT) {
if (err != 0 && err != ETIMEDOUT) {
setbuf(stdout, nullptr);
setbuf(stderr, nullptr);
const unsigned NAMELEN = 32;