summaryrefslogtreecommitdiff
path: root/src/journal/journal-file.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-18 00:37:21 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-18 00:37:21 +0200
commitdb11ac1ab56bc13514a029e7d126c5efe2c68bc2 (patch)
tree3b8506431e56d2b89bca4c817fb26429f5946c30 /src/journal/journal-file.h
parenta0108012974558c5a7dcf8c76456be6a07b0e95d (diff)
journald: add additional simple static tests to verifier
Diffstat (limited to 'src/journal/journal-file.h')
-rw-r--r--src/journal/journal-file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h
index 58de214359..2d2bf319a0 100644
--- a/src/journal/journal-file.h
+++ b/src/journal/journal-file.h
@@ -117,6 +117,7 @@ int journal_file_open_reliably(
JournalFile **ret);
#define ALIGN64(x) (((x) + 7ULL) & ~7ULL)
+#define VALID64(x) (((x) & 7ULL) == 0ULL)
#define JOURNAL_HEADER_CONTAINS(h, field) \
(le64toh((h)->header_size) >= offsetof(Header, field) + sizeof((h)->field))