]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journald-manager: make manager_get_file_flags() return JournalFileFlags
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 13 Jul 2025 07:21:26 +0000 (16:21 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 18 Jul 2025 06:26:44 +0000 (15:26 +0900)
This also adds a missing assertion.

src/journal/journald-manager.c

index ea8ca4365302da97da98ae1e27115e913b81d1cd..f6700fcc68102ce8ce4fcf83a736a96dd8d8d380 100644 (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(