chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
journal: fix against (theoretical) undefined behavior
[elogind.git]
/
src
/
shared
/
time-util.h
diff --git
a/src/shared/time-util.h
b/src/shared/time-util.h
index 0a3a98b1879f2b4b4427034f7916e1275167faaa..913821a6bddeaec60be7e1d80bc528f12d90d7ff 100644
(file)
--- a/
src/shared/time-util.h
+++ b/
src/shared/time-util.h
@@
-58,6
+58,8
@@
typedef struct dual_timestamp {
#define FORMAT_TIMESTAMP_RELATIVE_MAX 256
#define FORMAT_TIMESPAN_MAX 64
+#define DUAL_TIMESTAMP_NULL ((struct dual_timestamp) { 0, 0 })
+
usec_t now(clockid_t clock);
dual_timestamp* dual_timestamp_get(dual_timestamp *ts);