journald-manager: make manager_get_file_flags() return JournalFileFlags

This also adds a missing assertion.
This commit is contained in:
Yu Watanabe
2025-07-18 15:26:44 +09:00
parent ef69668db2
commit a322e43ba9
+5 -3
View File
@@ -259,10 +259,12 @@ static void manager_add_acls(JournalFile *f, uid_t uid) {
#endif
}
static int manager_get_file_flags(Manager *m, bool seal) {
static JournalFileFlags manager_get_file_flags(Manager *m, bool seal) {
assert(m);
return (m->compress.enabled ? JOURNAL_COMPRESS : 0) |
(seal ? JOURNAL_SEAL : 0) |
JOURNAL_STRICT_ORDER;
(seal ? JOURNAL_SEAL : 0) |
JOURNAL_STRICT_ORDER;
}
static int manager_open_journal(