chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
man: make bootup graph consistent
[elogind.git]
/
src
/
shared
/
time-util.h
diff --git
a/src/shared/time-util.h
b/src/shared/time-util.h
index b55a660bb006c140d5387d95c27bee8b603a22d2..fca8a4db9b85324c1d9329daef58f0b15d12b9a0 100644
(file)
--- a/
src/shared/time-util.h
+++ b/
src/shared/time-util.h
@@
-67,7
+67,7
@@
typedef struct dual_timestamp {
#define TIME_T_MAX (time_t)((1UL << ((sizeof(time_t) << 3) - 1)) - 1)
#define TIME_T_MAX (time_t)((1UL << ((sizeof(time_t) << 3) - 1)) - 1)
-#define DUAL_TIMESTAMP_NULL ((struct dual_timestamp) { 0
, 0
})
+#define DUAL_TIMESTAMP_NULL ((struct dual_timestamp) { 0
ULL, 0ULL
})
usec_t now(clockid_t clock);
usec_t now(clockid_t clock);
@@
-107,3
+107,5
@@
int get_timezones(char ***l);
bool timezone_is_valid(const char *name);
clockid_t clock_boottime_or_monotonic(void);
bool timezone_is_valid(const char *name);
clockid_t clock_boottime_or_monotonic(void);
+
+#define xstrftime(buf, fmt, tm) assert_se(strftime(buf, ELEMENTSOF(buf), fmt, tm) > 0)