diff --git a/spa/plugins/support/node-driver.c b/spa/plugins/support/node-driver.c index 5c024adef..67d4b309a 100644 --- a/spa/plugins/support/node-driver.c +++ b/spa/plugins/support/node-driver.c @@ -241,7 +241,7 @@ static void on_timeout(struct spa_source *source) if ((res = spa_system_timerfd_read(this->data_system, this->timer_source.fd, &expirations)) < 0) { - if (res != EAGAIN) + if (res != -EAGAIN) spa_log_error(this->log, NAME " %p: timerfd error: %s", this, spa_strerror(res)); return; diff --git a/spa/plugins/support/null-audio-sink.c b/spa/plugins/support/null-audio-sink.c index 7d07fb0d6..ad2c4db2a 100644 --- a/spa/plugins/support/null-audio-sink.c +++ b/spa/plugins/support/null-audio-sink.c @@ -273,7 +273,7 @@ static void on_timeout(struct spa_source *source) if ((res = spa_system_timerfd_read(this->data_system, this->timer_source.fd, &expirations)) < 0) { - if (res != EAGAIN) + if (res != -EAGAIN) spa_log_error(this->log, NAME " %p: timerfd error: %s", this, spa_strerror(res)); return;