]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysupdate: drop pointless bitfields
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 19 Feb 2024 11:10:34 +0000 (12:10 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 20 Feb 2024 09:41:09 +0000 (10:41 +0100)
Again, even without considering how many copies of the struct there
can be, this bitfield is useless because of alignment.

src/sysupdate/sysupdate-partition.h

index 672eb93e9055a8d6d3a0386833bcdfbd0ad157d9..094d8e0ca49be03b3bf0aea60a3ab7f0f8e412cf 100644 (file)
@@ -29,9 +29,9 @@ struct PartitionInfo {
         sd_id128_t type, uuid;
         char *label;
         char *device; /* Note that this might point to some non-existing path in case we operate on a loopback file */
-        bool no_auto:1;
-        bool read_only:1;
-        bool growfs:1;
+        bool no_auto;
+        bool read_only;
+        bool growfs;
 };
 
 #define PARTITION_INFO_NULL                     \