From 355ad8fe70ffbc7a7d25424c8b4a5e4c0ed1a5b6 Mon Sep 17 00:00:00 2001 From: QC Date: Sat, 5 Sep 2015 19:04:36 +0200 Subject: [PATCH] small cleanup --- source/rofi.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/rofi.c b/source/rofi.c index 4693fb4a..6908137a 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -1844,13 +1844,9 @@ static GThread *setup_signal_thread ( int *fd ) int main ( int argc, char *argv[] ) { - int quiet = FALSE; - int dmenu_mode = FALSE; cmd_set_arguments ( argc, argv ); // Quiet flag - if ( find_arg ( "-quiet" ) >= 0 ) { - quiet = TRUE; - } + int quiet = ( find_arg ( "-quiet" ) >= 0 ); // catch help request if ( find_arg ( "-h" ) >= 0 || find_arg ( "-help" ) >= 0 || find_arg ( "--help" ) >= 0 ) { help (); @@ -1865,6 +1861,7 @@ int main ( int argc, char *argv[] ) // Detect if we are in dmenu mode. // This has two possible causes. // 1 the user specifies it on the command-line. + int dmenu_mode = FALSE; if ( find_arg ( "-dmenu" ) >= 0 ) { dmenu_mode = TRUE; }