From 8a08a3209c093f9b1137ec5879d3804026b0df6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 19 Oct 2020 12:05:06 +0200 Subject: IWYU update - Add Settings forward declaration in Process.h - Add assert.h include in XUitls.c - Add conditional stdbool.h include in Object.h - Drop unneeded stddef.h include in Richstring.c - Drop unneeded unistd.h include in Process.h - Drop unneeded string.h include in linux/Platform.c - Use String_eq to avoid string.h include in Action.c - Improve script to run custom iwyu version --- Action.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Action.c') diff --git a/Action.c b/Action.c index 7443c842..3f5737fc 100644 --- a/Action.c +++ b/Action.c @@ -511,10 +511,10 @@ static Htop_Reaction actionHelp(State* st) { mvaddstr(line + item, 9, helpLeft[item].info); attrset(CRT_colors[HELP_BOLD]); mvaddstr(line + item, 0, helpLeft[item].key); - if (0 == strcmp(helpLeft[item].key, " H: ")) { + if (String_eq(helpLeft[item].key, " H: ")) { attrset(CRT_colors[PROCESS_THREAD]); mvaddstr(line + item, 32, "threads"); - } else if (0 == strcmp(helpLeft[item].key, " K: ")) { + } else if (String_eq(helpLeft[item].key, " K: ")) { attrset(CRT_colors[PROCESS_THREAD]); mvaddstr(line + item, 26, "threads"); } -- cgit v1.2.3