network: voidify sd_event_add_signal() and sd_event_set_watchdog()

This commit is contained in:
Yu Watanabe 2018-07-20 11:29:49 +09:00
parent e42699438a
commit 05e2162773
1 changed files with 3 additions and 3 deletions

View File

@ -1386,9 +1386,9 @@ int manager_new(Manager **ret) {
if (r < 0)
return r;
sd_event_set_watchdog(m->event, true);
sd_event_add_signal(m->event, NULL, SIGTERM, NULL, NULL);
sd_event_add_signal(m->event, NULL, SIGINT, NULL, NULL);
(void) sd_event_set_watchdog(m->event, true);
(void) sd_event_add_signal(m->event, NULL, SIGTERM, NULL, NULL);
(void) sd_event_add_signal(m->event, NULL, SIGINT, NULL, NULL);
r = sd_event_add_post(m->event, NULL, manager_dirty_handler, m);
if (r < 0)