mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
tree-wide: pass proper values (not bools) to sd_event_source_set_enabled()
This commit is contained in:
@@ -1480,7 +1480,7 @@ static int dispatch_sigterm(sd_event_source *es, const struct signalfd_siginfo *
|
||||
|
||||
log_received_signal(LOG_INFO, si);
|
||||
|
||||
(void) sd_event_source_set_enabled(es, false); /* Make sure this handler is called at most once */
|
||||
(void) sd_event_source_set_enabled(es, SD_EVENT_OFF); /* Make sure this handler is called at most once */
|
||||
|
||||
/* So on one hand we want to ensure that SIGTERMs are definitely handled in appropriate, bounded
|
||||
* time. On the other hand we want that everything pending is first comprehensively processed and
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user