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_TCPOPTSTRIP.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_TCPOPTSTRIP.c')
-rw-r--r-- | extensions/libxt_TCPOPTSTRIP.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/libxt_TCPOPTSTRIP.c b/extensions/libxt_TCPOPTSTRIP.c index 7211288e..c053a8b1 100644 --- a/extensions/libxt_TCPOPTSTRIP.c +++ b/extensions/libxt_TCPOPTSTRIP.c @@ -82,7 +82,8 @@ static void parse_list(struct xt_tcpoptstrip_target_info *info, char *arg) break; } - if (option == 0 && string_to_number(arg, 0, UINT8_MAX, &option) == -1) + if (option == 0 && + !xtables_strtoui(arg, NULL, &option, 0, UINT8_MAX)) exit_error(PARAMETER_PROBLEM, "Bad TCP option value \"%s\"", arg); |