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_TTL.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'extensions/libipt_TTL.c') diff --git a/extensions/libipt_TTL.c b/extensions/libipt_TTL.c index 15d23ba2..25018777 100644 --- a/extensions/libipt_TTL.c +++ b/extensions/libipt_TTL.c @@ -32,20 +32,20 @@ static int TTL_parse(int c, char **argv, int invert, unsigned int *flags, unsigned int value; if (*flags & IPT_TTL_USED) { - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "Can't specify TTL option twice"); } if (!optarg) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "TTL: You must specify a value"); if (xtables_check_inverse(optarg, &invert, NULL, 0)) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "TTL: unexpected `!'"); if (!xtables_strtoui(optarg, NULL, &value, 0, UINT8_MAX)) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "TTL: Expected value between 0 and 255"); switch (c) { @@ -56,7 +56,7 @@ static int TTL_parse(int c, char **argv, int invert, unsigned int *flags, case '2': if (value == 0) { - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "TTL: decreasing by 0?"); } @@ -65,7 +65,7 @@ static int TTL_parse(int c, char **argv, int invert, unsigned int *flags, case '3': if (value == 0) { - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "TTL: increasing by 0?"); } @@ -86,7 +86,7 @@ static int TTL_parse(int c, char **argv, int invert, unsigned int *flags, static void TTL_check(unsigned int flags) { if (!(flags & IPT_TTL_USED)) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "TTL: You must specify an action"); } -- cgit v1.2.3