From 1829ed482efbc8b390cc760d012b3a4450494e1a Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 21 Feb 2009 03:29:44 +0100 Subject: libxtables: prefix exit_error to xtables_error Signed-off-by: Jan Engelhardt --- extensions/libxt_length.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'extensions/libxt_length.c') 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'"); } -- cgit v1.2.3