File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ static const struct {
364364static int device_found_to_string_many (DeviceFound flags , char * * ret ) {
365365 _cleanup_free_ char * s = NULL ;
366366
367- assert (flags > = 0 );
367+ assert (( flags & ~ _DEVICE_FOUND_MASK ) = = 0 );
368368 assert (ret );
369369
370370 FOREACH_ELEMENT (i , device_found_map ) {
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 {
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ typedef enum TableErsatz {
8686 TABLE_ERSATZ_UNSET ,
8787 TABLE_ERSATZ_NA ,
8888 _TABLE_ERSATZ_MAX ,
89+ _TABLE_ERSATZ_INVALID = - EINVAL ,
8990} TableErsatz ;
9091
9192typedef struct Table Table ;
You can’t perform that action at this time.
0 commit comments