diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-02-21 03:29:44 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-02-21 03:29:44 +0100 |
commit | 1829ed482efbc8b390cc760d012b3a4450494e1a (patch) | |
tree | cfdd4aa54cee9dc7e8eda8f755f3cf2ab8e1e880 /extensions/libxt_length.c | |
parent | bddcb92d1f0f76d21c4469b1667c8199c9fab126 (diff) |
libxtables: prefix exit_error to xtables_error
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libxt_length.c')
-rw-r--r-- | extensions/libxt_length.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/libxt_length.c b/extensions/libxt_length.c index cf944e2d..7bb31a83 100644 --- a/extensions/libxt_length.c +++ b/extensions/libxt_length.c @@ -27,7 +27,7 @@ parse_length(const char *s) unsigned int len; if (!xtables_strtoui(s, NULL, &len, 0, UINT32_MAX)) - exit_error(PARAMETER_PROBLEM, "length invalid: `%s'\n", s); + xtables_error(PARAMETER_PROBLEM, "length invalid: \"%s\"\n", s); else return len; } @@ -52,7 +52,7 @@ parse_lengths(const char *s, struct xt_length_info *info) free(buffer); if (info->min > info->max) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "length min. range value `%u' greater than max. " "range value `%u'", info->min, info->max); @@ -67,7 +67,7 @@ length_parse(int c, char **argv, int invert, unsigned int *flags, switch (c) { case '1': if (*flags) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "length: `--length' may only be " "specified once"); xtables_check_inverse(optarg, &invert, &optind, 0); @@ -86,7 +86,7 @@ length_parse(int c, char **argv, int invert, unsigned int *flags, static void length_check(unsigned int flags) { if (!flags) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "length: You must specify `--length'"); } |