From 4ff97ffbe33f961e523bbdaa160e7fbb79f3dae1 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 9 Dec 2024 12:24:23 +0100 Subject: [PATCH] lscpu: use bool type in control structs References: 63d7937180fcce4ea7fc1d2855872e464f06e779 Signed-off-by: Karel Zak --- sys-utils/lscpu.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) 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 */ }; -- 2.47.2