diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-10-24 00:08:09 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-10-29 19:04:17 +0100 |
commit | 2be22fb36dd1268baecb42ddf35b7a40a6de21d7 (patch) | |
tree | 946c4576295f2d39c65167b082170e61a651ddec | |
parent | 4f0d7b660e0ae8f678142fd2a1722b27ad472169 (diff) |
style: reduce indent in xtables_check_inverse
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r-- | xtables.c | 32 |
1 files changed, 16 insertions, 16 deletions
@@ -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[] = { |