]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
style: reduce indent in xtables_check_inverse
authorJan Engelhardt <jengelh@medozas.de>
Fri, 23 Oct 2009 22:08:09 +0000 (00:08 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 29 Oct 2009 18:04:17 +0000 (19:04 +0100)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
xtables.c

index bda49f8450ee6927599483e14b4dbaa4fe5595ae..35a87e88051711e80940715c5d641a807f079741 100644 (file)
--- a/xtables.c
+++ b/xtables.c
@@ -1645,25 +1645,25 @@ void xtables_save_string(const char *value)
 int xtables_check_inverse(const char option[], int *invert,
                          int *my_optind, int argc)
 {
-       if (option && strcmp(option, "!") == 0) {
-               fprintf(stderr, "Using intrapositioned negation "
-                       "(`--option ! this`) is deprecated in favor of "
-                       "extrapositioned (`! --option this`).\n");
+       if (option == NULL || strcmp(option, "!") != 0)
+               return false;
 
-               if (*invert)
-                       xt_params->exit_err(PARAMETER_PROBLEM,
-                                  "Multiple `!' flags not allowed");
-               *invert = true;
-               if (my_optind != NULL) {
-                       ++*my_optind;
-                       if (argc && *my_optind > argc)
-                               xt_params->exit_err(PARAMETER_PROBLEM,
-                                          "no argument following `!'");
-               }
+       fprintf(stderr, "Using intrapositioned negation "
+               "(`--option ! this`) is deprecated in favor of "
+               "extrapositioned (`! --option this`).\n");
 
-               return true;
+       if (*invert)
+               xt_params->exit_err(PARAMETER_PROBLEM,
+                          "Multiple `!' flags not allowed");
+       *invert = true;
+       if (my_optind != NULL) {
+               ++*my_optind;
+               if (argc && *my_optind > argc)
+                       xt_params->exit_err(PARAMETER_PROBLEM,
+                                  "no argument following `!'");
        }
-       return false;
+
+       return true;
 }
 
 const struct xtables_pprot xtables_chain_protos[] = {