]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-file: use FLAGS_SET where appropriate
authorLennart Poettering <lennart@poettering.net>
Fri, 29 May 2020 21:35:25 +0000 (23:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 25 Jun 2020 13:00:44 +0000 (15:00 +0200)
src/journal/journal-file.h

index cf0f7691fb187f933d8b39467ea56dafd88b2fc5..121e9153a6ba062407ed228c52c3e0fce0049acb 100644 (file)
@@ -187,13 +187,13 @@ static inline bool VALID_EPOCH(uint64_t u) {
         (le64toh((h)->header_size) >= offsetof(Header, field) + sizeof((h)->field))
 
 #define JOURNAL_HEADER_SEALED(h) \
-        (!!(le32toh((h)->compatible_flags) & HEADER_COMPATIBLE_SEALED))
+        FLAGS_SET(le32toh((h)->compatible_flags), HEADER_COMPATIBLE_SEALED)
 
 #define JOURNAL_HEADER_COMPRESSED_XZ(h) \
-        (!!(le32toh((h)->incompatible_flags) & HEADER_INCOMPATIBLE_COMPRESSED_XZ))
+        FLAGS_SET(le32toh((h)->incompatible_flags), HEADER_INCOMPATIBLE_COMPRESSED_XZ)
 
 #define JOURNAL_HEADER_COMPRESSED_LZ4(h) \
-        (!!(le32toh((h)->incompatible_flags) & HEADER_INCOMPATIBLE_COMPRESSED_LZ4))
+        FLAGS_SET(le32toh((h)->incompatible_flags), HEADER_INCOMPATIBLE_COMPRESSED_LZ4)
 
 int journal_file_move_to_object(JournalFile *f, ObjectType type, uint64_t offset, Object **ret);