From: Karel Zak Date: Mon, 9 Dec 2024 11:24:23 +0000 (+0100) Subject: lscpu: use bool type in control structs X-Git-Tag: v2.42-start~123^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4ff97ffbe33f961e523bbdaa160e7fbb79f3dae1;p=thirdparty%2Futil-linux.git lscpu: use bool type in control structs References: 63d7937180fcce4ea7fc1d2855872e464f06e779 Signed-off-by: Karel Zak --- diff --git a/sys-utils/lscpu.h b/sys-utils/lscpu.h index 062c55c8a..459fea84d 100644 --- a/sys-utils/lscpu.h +++ b/sys-utils/lscpu.h @@ -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 */ };