[Olsr-dev] [PATCH v1 21/43] main: minor improvements

Ferry Huberts (spam-protected)
Wed Nov 11 17:21:54 CET 2015


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 src/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c
index 5ce98fa..078eb0d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -287,12 +287,12 @@ int main(int argc, char *argv[]) {
   print_version();
 
   if (argcLocal == 2) {
-    if ((strcmp(argv[1], "-h") == 0) || (strcmp(argv[1], "/?") == 0)) {
+    if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "/?")) {
       /* help */
       print_usage(false);
       olsr_exit(NULL, 0);
     }
-    if (strcmp(argv[1], "-v") == 0) {
+    if (!strcmp(argv[1], "-v")) {
       /* version */
       olsr_exit(NULL, 0);
     }
-- 
2.5.0




More information about the Olsr-dev mailing list