From: Lennart Poettering Date: Fri, 29 May 2020 21:35:25 +0000 (+0200) Subject: journal-file: use FLAGS_SET where appropriate X-Git-Tag: v246-rc1~84^2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a76560915fd6d07bcb65e26a9d5f3b7abc93f291;p=thirdparty%2Fsystemd.git journal-file: use FLAGS_SET where appropriate --- diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h index cf0f7691fb1..121e9153a6b 100644 --- a/src/journal/journal-file.h +++ b/src/journal/journal-file.h @@ -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);