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/libipt_SAME.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'extensions/libipt_SAME.c') diff --git a/extensions/libipt_SAME.c b/extensions/libipt_SAME.c index 007ebc35..444a5208 100644 --- a/extensions/libipt_SAME.c +++ b/extensions/libipt_SAME.c @@ -58,20 +58,20 @@ parse_to(char *arg, struct ip_nat_range *range) ip = xtables_numeric_to_ipaddr(arg); if (!ip) - exit_error(PARAMETER_PROBLEM, "Bad IP address `%s'\n", + xtables_error(PARAMETER_PROBLEM, "Bad IP address \"%s\"\n", arg); range->min_ip = ip->s_addr; if (dash) { ip = xtables_numeric_to_ipaddr(dash+1); if (!ip) - exit_error(PARAMETER_PROBLEM, "Bad IP address `%s'\n", + xtables_error(PARAMETER_PROBLEM, "Bad IP address \"%s\"\n", dash+1); } range->max_ip = ip->s_addr; if (dash) if (range->min_ip > range->max_ip) - exit_error(PARAMETER_PROBLEM, "Bad IP range `%s-%s'\n", + xtables_error(PARAMETER_PROBLEM, "Bad IP range \"%s-%s\"\n", arg, dash+1); } @@ -89,12 +89,12 @@ static int SAME_parse(int c, char **argv, int invert, unsigned int *flags, switch (c) { case '1': if (mr->rangesize == IPT_SAME_MAX_RANGE) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "Too many ranges specified, maximum " "is %i ranges.\n", IPT_SAME_MAX_RANGE); if (xtables_check_inverse(optarg, &invert, NULL, 0)) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "Unexpected `!' after --to"); parse_to(optarg, &mr->range[mr->rangesize]); @@ -108,7 +108,7 @@ static int SAME_parse(int c, char **argv, int invert, unsigned int *flags, case '2': if (*flags & IPT_SAME_OPT_NODST) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "Can't specify --nodst twice"); mr->info |= IPT_SAME_NODST; @@ -131,7 +131,7 @@ static int SAME_parse(int c, char **argv, int invert, unsigned int *flags, static void SAME_check(unsigned int flags) { if (!(flags & IPT_SAME_OPT_TO)) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "SAME needs --to"); } -- cgit v1.2.3