chiark / gitweb /
systemctl: add add-wants and add-requires verbs
[elogind.git] / src / core / dbus-execute.c
index ecbadd765b5bdebb45d38057322881c8502021be..9276da4cdc3e2c627ff46b3a661891ec275c30f1 100644 (file)
@@ -300,7 +300,7 @@ static int property_get_timer_slack_nsec(
         assert(reply);
         assert(c);
 
-        if (c->timer_slack_nsec != (nsec_t) -1)
+        if (c->timer_slack_nsec != NSEC_INFINITY)
                 u = (uint64_t) c->timer_slack_nsec;
         else
                 u = (uint64_t) prctl(PR_GET_TIMERSLACK);