From: Jason Ish Date: Tue, 26 Nov 2013 16:16:04 +0000 (-0600) Subject: Remove the single line if statements. X-Git-Tag: suricata-2.0beta2~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06f4fe8e0c12e36b43d8af4e9751e9764f8afc3b;p=thirdparty%2Fsuricata.git Remove the single line if statements. --- diff --git a/src/conf-yaml-loader.c b/src/conf-yaml-loader.c index d257eec8b3..c97ec0550f 100644 --- a/src/conf-yaml-loader.c +++ b/src/conf-yaml-loader.c @@ -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();