tree-wide: pass proper values (not bools) to sd_event_source_set_enabled()

This commit is contained in:
Lennart Poettering
2022-08-19 14:56:26 +02:00
parent 7484c60ec6
commit 2ab1fb77e2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3662,7 +3662,7 @@ static int prepare_callback(sd_event_source *s, void *userdata) {
}
}
r = sd_event_source_set_enabled(bus->time_event_source, r > 0);
r = sd_event_source_set_enabled(bus->time_event_source, r > 0 ? SD_EVENT_ONESHOT : SD_EVENT_OFF);
if (r < 0)
goto fail;