From a2a169affeb57a42e27dd4893da0bdb52542dae9 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 9 Nov 2015 11:37:47 +0100 Subject: flowtop: Simplify toggling of help state No need to use if/else, just toogle it like any other bool. Signed-off-by: Tobias Klauser --- flowtop.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/flowtop.c b/flowtop.c index 42f1a4b..41e80b7 100644 --- a/flowtop.c +++ b/flowtop.c @@ -1257,11 +1257,7 @@ static void presenter(void) show_active_only = !show_active_only; break; case '?': - if (show_help) - show_help = false; - else - show_help = true; - + show_help = !show_help; wclear(screen); clear(); break; -- cgit v1.2.3-54-g00ecf t.cgi/'>cgit logo index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
ModeNameSize
-rw-r--r--callback.h3542logplain
-rw-r--r--elfnote.h6249logplain
-rw-r--r--event_channel.h7613logplain
-rw-r--r--features.h1988logplain
-rw-r--r--grant_table.h20945logplain
d---------hvm72logplain
d---------io429logplain
-rw-r--r--memory.h8664logplain
-rw-r--r--nmi.h1507logplain