From e4746b57387ffaf8be01c177ed4bbf02c8088341 Mon Sep 17 00:00:00 2001 From: Ronny Chevalier Date: Sat, 11 Oct 2014 18:45:11 +0200 Subject: util: avoid duplication of TIME_T_MAX --- src/shared/time-util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/shared/time-util.h') diff --git a/src/shared/time-util.h b/src/shared/time-util.h index 05369d295b..b55a660bb0 100644 --- a/src/shared/time-util.h +++ b/src/shared/time-util.h @@ -65,6 +65,8 @@ typedef struct dual_timestamp { #define FORMAT_TIMESTAMP_RELATIVE_MAX 256 #define FORMAT_TIMESPAN_MAX 64 +#define TIME_T_MAX (time_t)((1UL << ((sizeof(time_t) << 3) - 1)) - 1) + #define DUAL_TIMESTAMP_NULL ((struct dual_timestamp) { 0, 0 }) usec_t now(clockid_t clock); -- cgit v1.2.3-54-g00ecf