]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemd-journald: drop pointless bitfield annotations
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 14 May 2025 13:49:44 +0000 (15:49 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 14 May 2025 16:35:32 +0000 (18:35 +0200)
This actually doesn't change the struct size, because bools are coalesced
anyway. Also group the bool fields together.

src/journal/journald-manager.h

index 32412fc6a1906cf0086f8e94be86ab0a1bc069d6..ceaa11801cb477d389a20e11a6dfd1e3704a3ae2 100644 (file)
@@ -115,9 +115,13 @@ typedef struct Manager {
         JournalStorage system_storage;
 
         JournalCompressOptions compress;
+        int set_audit;
         bool seal;
         bool read_kmsg;
-        int set_audit;
+
+        bool send_watchdog;
+        bool sent_notify_ready;
+        bool sync_scheduled;
 
         bool forward_to_kmsg;
         bool forward_to_syslog;
@@ -155,10 +159,6 @@ typedef struct Manager {
         uint64_t *kernel_seqnum;
         RateLimit kmsg_own_ratelimit;
 
-        bool send_watchdog:1;
-        bool sent_notify_ready:1;
-        bool sync_scheduled:1;
-
         char machine_id_field[STRLEN("_MACHINE_ID=") + SD_ID128_STRING_MAX];
         char boot_id_field[STRLEN("_BOOT_ID=") + SD_ID128_STRING_MAX];
         char *hostname_field;