]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Remove the single line if statements.
authorJason Ish <jason.ish@emulex.com>
Tue, 26 Nov 2013 16:16:04 +0000 (10:16 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 27 Nov 2013 11:30:24 +0000 (12:30 +0100)
src/conf-yaml-loader.c

index d257eec8b36dcbcac0ea8a26d312c03942c01cee..c97ec0550fa9c47f309230e2c96ae83e2998f081 100644 (file)
@@ -699,19 +699,27 @@ ConfYamlFileIncludeTest(void)
      * configuration. */
     ConfNode *node;
     node = ConfGetNode("host-mode");
-    if (node == NULL) goto cleanup;
-    if (strcmp(node->val, "auto") != 0) goto cleanup;
+    if (node == NULL)
+        goto cleanup;
+    if (strcmp(node->val, "auto") != 0)
+        goto cleanup;
     node = ConfGetNode("unix-command.enabled");
-    if (node == NULL) goto cleanup;
-    if (strcmp(node->val, "no") != 0) goto cleanup;
+    if (node == NULL)
+        goto cleanup;
+    if (strcmp(node->val, "no") != 0)
+        goto cleanup;
 
     /* Check for values that were included under a mapping. */
     node = ConfGetNode("mapping.host-mode");
-    if (node == NULL) goto cleanup;
-    if (strcmp(node->val, "auto") != 0) goto cleanup;
+    if (node == NULL)
+        goto cleanup;
+    if (strcmp(node->val, "auto") != 0)
+        goto cleanup;
     node = ConfGetNode("mapping.unix-command.enabled");
-    if (node == NULL) goto cleanup;
-    if (strcmp(node->val, "no") != 0) goto cleanup;
+    if (node == NULL)
+        goto cleanup;
+    if (strcmp(node->val, "no") != 0)
+        goto cleanup;
 
     ConfDeInit();
     ConfRestoreContextBackup();