chiark / gitweb /
logind: allow suspending if there are no displays
[elogind.git] / src / timesync / timesyncd.c
index 13cd3b1ed3c2f7d24453099b8dad8ab8ccff1739..aefbd27c7b2ba00d444d6d178650b20c8be1e8d2 100644 (file)
@@ -205,7 +205,7 @@ static int manager_send_request(Manager *m) {
                 return manager_connect(m);
         }
 
-        /* re-arm timer with incresing timeout, in case the packets never arrive back */
+        /* re-arm timer with increasing timeout, in case the packets never arrive back */
         if (m->retry_interval > 0) {
                 if (m->retry_interval < NTP_POLL_INTERVAL_MAX_SEC * USEC_PER_SEC)
                         m->retry_interval *= 2;
@@ -981,7 +981,7 @@ static int manager_new(Manager **ret) {
 
         r = sd_resolve_attach_event(m->resolve, m->event, 0);
         if (r < 0)
-                return 0;
+                return r;
 
         r = manager_clock_watch_setup(m);
         if (r < 0)