]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
timesync: voidify sd_event_add_signal() and sd_event_set_watchdog() 9659/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 Jul 2018 02:30:11 +0000 (11:30 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 Jul 2018 02:30:11 +0000 (11:30 +0900)
src/timesync/timesyncd-manager.c

index ca14253adf31c899d67f72df9132bef8123148cf..5a3d478d73fa0fbb53092cf63ec145afdb6a5615 100644 (file)
@@ -1101,10 +1101,10 @@ int manager_new(Manager **ret) {
         if (r < 0)
                 return r;
 
-        sd_event_add_signal(m->event, NULL, SIGTERM, NULL,  NULL);
-        sd_event_add_signal(m->event, NULL, SIGINT, NULL, NULL);
+        (void) sd_event_add_signal(m->event, NULL, SIGTERM, NULL,  NULL);
+        (void) sd_event_add_signal(m->event, NULL, SIGINT, NULL, NULL);
 
-        sd_event_set_watchdog(m->event, true);
+        (void) sd_event_set_watchdog(m->event, true);
 
         r = sd_resolve_default(&m->resolve);
         if (r < 0)