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/libipt_ttl.c | |
parent | bddcb92d1f0f76d21c4469b1667c8199c9fab126 (diff) |
libxtables: prefix exit_error to xtables_error
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libipt_ttl.c')
-rw-r--r-- | extensions/libipt_ttl.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/extensions/libipt_ttl.c b/extensions/libipt_ttl.c index 3387e924..67f0b1ad 100644 --- a/extensions/libipt_ttl.c +++ b/extensions/libipt_ttl.c @@ -34,7 +34,7 @@ static int ttl_parse(int c, char **argv, int invert, unsigned int *flags, switch (c) { case '2': if (!xtables_strtoui(optarg, NULL, &value, 0, UINT8_MAX)) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "ttl: Expected value between 0 and 255"); if (invert) @@ -47,11 +47,11 @@ static int ttl_parse(int c, char **argv, int invert, unsigned int *flags, break; case '3': if (!xtables_strtoui(optarg, NULL, &value, 0, UINT8_MAX)) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "ttl: Expected value between 0 and 255"); if (invert) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "ttl: unexpected `!'"); info->mode = IPT_TTL_LT; @@ -59,11 +59,11 @@ static int ttl_parse(int c, char **argv, int invert, unsigned int *flags, break; case '4': if (!xtables_strtoui(optarg, NULL, &value, 0, UINT8_MAX)) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "ttl: Expected value between 0 and 255"); if (invert) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "ttl: unexpected `!'"); info->mode = IPT_TTL_GT; @@ -75,7 +75,7 @@ static int ttl_parse(int c, char **argv, int invert, unsigned int *flags, } if (*flags) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "Can't specify TTL option twice"); *flags = 1; @@ -85,7 +85,7 @@ static int ttl_parse(int c, char **argv, int invert, unsigned int *flags, static void ttl_check(unsigned int flags) { if (!flags) - exit_error(PARAMETER_PROBLEM, + xtables_error(PARAMETER_PROBLEM, "TTL match: You must specify one of " "`--ttl-eq', `--ttl-lt', `--ttl-gt"); } |