]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
runmodes: improve listing output 1401/head
authorEric Leblond <eric@regit.org>
Wed, 1 Apr 2015 15:59:54 +0000 (17:59 +0200)
committerEric Leblond <eric@regit.org>
Thu, 2 Apr 2015 07:38:32 +0000 (09:38 +0200)
This patch removes some multiple line displayed before the
information about unix socket mode.

src/runmodes.c

index e38552715321676601efc5e22d4686cfccda0ada..aa2e9bce64fc474eb6d42e37f99cb131bbacaad5 100644 (file)
@@ -255,8 +255,10 @@ void RunModeListRunmodes(void)
             if (mode_displayed == 0)
                 mode_displayed = 1;
         }
-        printf("|-----------------------------------------------------------------"
-               "-----------------------\n");
+        if (mode_displayed == 1) {
+            printf("|-----------------------------------------------------------------"
+                   "-----------------------\n");
+        } 
     }
 
     return;