X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fmanager.c;h=d4afc931f3d7270e3fa43650312e7b2e10b8f234;hp=df0fd63e87171add3dbb6fa6b6498bb90a9660f2;hb=d6a195a3c373f67632cb98d6e6e14f974ef062f9;hpb=2b3987a863975f5a1fa1754725e3d07a5d4f6478 diff --git a/src/core/manager.c b/src/core/manager.c index df0fd63e8..d4afc931f 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -157,8 +157,8 @@ static int manager_setup_time_change(Manager *m) { /* We only care for the cancellation event, hence we set the * timeout to the latest possible value. */ - assert_cc(sizeof(time_t) == sizeof(long)); - its.it_value.tv_sec = LONG_MAX; + assert_cc(sizeof(time_t) == sizeof(TIME_T_MAX)); + its.it_value.tv_sec = TIME_T_MAX; if (timerfd_settime(m->time_change_watch.fd, TFD_TIMER_ABSTIME|TFD_TIMER_CANCEL_ON_SET, &its, NULL) < 0) { log_debug("Failed to set up TFD_TIMER_CANCEL_ON_SET, ignoring: %m");