diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-01-27 18:43:01 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-01-27 23:14:30 +0100 |
commit | 5f2922cfc0bbfbeb878f5c12e9fb3eb602ae5507 (patch) | |
tree | d0fc6078218d3729279e0d47d3a766fcffdeab9d /extensions/libxt_limit.c | |
parent | 39bf9c8214d3073a496a8a1eff91046a8d6fbbdf (diff) |
libxtables: prefix/order - strtoui
This commit also throws out the redundant string_to_number_*.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libxt_limit.c')
-rw-r--r-- | extensions/libxt_limit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libxt_limit.c b/extensions/libxt_limit.c index 3ed7b965..1df9114e 100644 --- a/extensions/libxt_limit.c +++ b/extensions/libxt_limit.c @@ -102,7 +102,7 @@ limit_parse(int c, char **argv, int invert, unsigned int *flags, case '$': if (check_inverse(argv[optind-1], &invert, &optind, 0)) break; - if (string_to_number(optarg, 0, 10000, &num) == -1) + if (!xtables_strtoui(optarg, NULL, &num, 0, 10000)) exit_error(PARAMETER_PROBLEM, "bad --limit-burst `%s'", optarg); r->burst = num; |