diff options
author | Ronny Chevalier <chevalier.ronny@gmail.com> | 2014-10-11 18:45:11 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-10-21 00:38:30 +0200 |
commit | e4746b57387ffaf8be01c177ed4bbf02c8088341 (patch) | |
tree | 12d3f25f511a05c381005f5d08a2585071efb0bd /src/core/manager.c | |
parent | 6dab5bb18151c80fc39bd51f03dcff40b920de3e (diff) |
util: avoid duplication of TIME_T_MAX
Diffstat (limited to 'src/core/manager.c')
-rw-r--r-- | src/core/manager.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index 726977fcfc..1a5d252d36 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -75,6 +75,7 @@ #include "dbus-job.h" #include "dbus-manager.h" #include "bus-kernel.h" +#include "time-util.h" /* As soon as 5s passed since a unit was added to our GC queue, make sure to run a gc sweep */ #define GC_QUEUE_USEC_MAX (10*USEC_PER_SEC) @@ -84,8 +85,6 @@ #define JOBS_IN_PROGRESS_PERIOD_USEC (USEC_PER_SEC / 3) #define JOBS_IN_PROGRESS_PERIOD_DIVISOR 3 -#define TIME_T_MAX (time_t)((1UL << ((sizeof(time_t) << 3) - 1)) - 1) - static int manager_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata); static int manager_dispatch_signal_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata); static int manager_dispatch_time_change_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata); |