From 9e9a395e5121e4cdc4f42954951d89f0bfbf416c Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Thu, 12 Feb 2015 17:24:09 +0100
Subject: [PATCH] cli: fix gcc-5 warning
Signed-off-by: Jakub Filak <jfilak@redhat.com>
---
src/cli/cli.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cli/cli.c b/src/cli/cli.c
index a467bf6..ff5b29f 100644
--- a/src/cli/cli.c
+++ b/src/cli/cli.c
@@ -116,7 +116,7 @@ int main(int argc, char** argv)
* FALSE == FALSE (need arg but havent).
* OPT_list_events is an exception, it can be used in both cases.
*/
- ((!(opts & OPTMASK_need_arg) == argc) && (op != OPT_list_events))
+ (((!(opts & OPTMASK_need_arg)) == argc) && (op != OPT_list_events))
) {
show_usage_and_die(program_usage_string, program_options);
}
--
2.1.0