File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/libsystemd/sd-journal Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4070,8 +4070,7 @@ int journal_file_open(
40704070 int r ;
40714071
40724072 assert (fd >= 0 || fname );
4073- assert (file_flags >= 0 );
4074- assert (file_flags <= _JOURNAL_FILE_FLAGS_MAX );
4073+ assert ((file_flags & ~_JOURNAL_FILE_FLAGS_ALL ) == 0 );
40754074 assert (mmap_cache );
40764075 assert (ret );
40774076
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ typedef enum JournalFileFlags {
132132 JOURNAL_COMPRESS = 1 << 0 ,
133133 JOURNAL_SEAL = 1 << 1 ,
134134 JOURNAL_STRICT_ORDER = 1 << 2 ,
135- _JOURNAL_FILE_FLAGS_MAX = JOURNAL_COMPRESS |JOURNAL_SEAL |JOURNAL_STRICT_ORDER ,
135+ _JOURNAL_FILE_FLAGS_ALL = JOURNAL_COMPRESS |JOURNAL_SEAL |JOURNAL_STRICT_ORDER ,
136136} JournalFileFlags ;
137137
138138typedef struct {
You can’t perform that action at this time.
0 commit comments