]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: use bool type in control structs
authorKarel Zak <kzak@redhat.com>
Mon, 9 Dec 2024 11:24:23 +0000 (12:24 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 9 Dec 2024 11:26:25 +0000 (12:26 +0100)
References: 63d7937180fcce4ea7fc1d2855872e464f06e779
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu.h

index 062c55c8abd4b54694d05b53aaf8db90ab2cf73f..459fea84d42d7a582b4073a46432e69653008874 100644 (file)
@@ -110,10 +110,10 @@ struct lscpu_cputype {
        size_t          ndrawers;
        cpu_set_t       **drawermaps;
 
-       unsigned int    has_freq : 1,
-                       has_configured : 1,
-                       has_polarization : 1,
-                       has_addresses : 1;
+       bool    has_freq,
+               has_configured,
+               has_polarization,
+               has_addresses;
 
        size_t nr_socket_on_cluster; /* the number of sockets if the is_cluster is 1 */
 
@@ -253,15 +253,15 @@ struct lscpu_cxt {
 
        int mode;       /* LSCPU_OUTPUT_* */
 
-       unsigned int noalive : 1,
-                    show_online : 1,
-                    show_offline : 1,
-                    show_physical : 1,
-                    show_compatible : 1,
-                    hex : 1,
-                    json : 1,
-                    raw : 1,
-                    bytes : 1;
+       bool     noalive,
+                show_online,
+                show_offline,
+                show_physical,
+                show_compatible,
+                hex,
+                json,
+                raw,
+                bytes;
 
        int is_cluster; /* For aarch64 if the machine doesn't have ACPI PPTT */
 };