summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-01 00:26:44 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-01 00:26:44 +0200
commit6398320759ce4ed84922bb28f715d3c6c66166c4 (patch)
treed82395c8860a377eef72b28f3cc707ed16e31eff /src/util.h
parent6398bea5d22a1d53f2fdabbf6fa4dc6f4ac1b6f4 (diff)
core: rename struct timestamp to dual_timestamp to avoid name clash with IP system headers
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.h b/src/util.h
index 2410312421..91e0359e0c 100644
--- a/src/util.h
+++ b/src/util.h
@@ -34,10 +34,10 @@
typedef uint64_t usec_t;
-typedef struct timestamp {
+typedef struct dual_timestamp {
usec_t realtime;
usec_t monotonic;
-} timestamp;
+} dual_timestamp;
#define MSEC_PER_SEC 1000ULL
#define USEC_PER_SEC 1000000ULL
@@ -60,7 +60,7 @@ typedef struct timestamp {
usec_t now(clockid_t clock);
-timestamp* timestamp_get(timestamp *ts);
+dual_timestamp* dual_timestamp_get(dual_timestamp *ts);
usec_t timespec_load(const struct timespec *ts);
struct timespec *timespec_store(struct timespec *ts, usec_t u);