diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-07-09 19:37:31 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-07-10 11:51:10 +0200 |
commit | fbe9f1ecccb5ac02858fa7eee2979e0e4d97bb5f (patch) | |
tree | 8a8242f1055659a390e433ed83e87e17e591c933 /iptables/xtables.c | |
parent | 0c384449ae9511157cd9b34d73f8f4cb71123a45 (diff) |
option: remove last traces of intrapositional negation
Intrapositional negation was deprecated in 1.4.3.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'iptables/xtables.c')
-rw-r--r-- | iptables/xtables.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/iptables/xtables.c b/iptables/xtables.c index 0f025920..b05df97b 100644 --- a/iptables/xtables.c +++ b/iptables/xtables.c @@ -1765,35 +1765,6 @@ void xtables_save_string(const char *value) } } -/** - * Check for option-intrapositional negation. - * Do not use in new code. - */ -int xtables_check_inverse(const char option[], int *invert, - int *my_optind, int argc, char **argv) -{ - if (option == NULL || strcmp(option, "!") != 0) - return false; - - fprintf(stderr, "Using intrapositioned negation " - "(`--option ! this`) is deprecated in favor of " - "extrapositioned (`! --option this`).\n"); - - if (*invert) - xt_params->exit_err(PARAMETER_PROBLEM, - "Multiple `!' flags not allowed"); - *invert = true; - if (my_optind != NULL) { - optarg = argv[*my_optind]; - ++*my_optind; - if (argc && *my_optind > argc) - xt_params->exit_err(PARAMETER_PROBLEM, - "no argument following `!'"); - } - - return true; -} - const struct xtables_pprot xtables_chain_protos[] = { {"tcp", IPPROTO_TCP}, {"sctp", IPPROTO_SCTP}, |