diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-01-27 18:14:21 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-01-27 23:14:29 +0100 |
commit | e917bca09924435f3fca23c01042543b1826c81e (patch) | |
tree | 4af388f40ddf885f17fa3e8fe791b3f9affd2a14 /extensions/libxt_tcp.c | |
parent | a80975497968e69b23f56bf15d346c65bec381f2 (diff) |
extensions: use UINT_MAX constants over open-coded numbers (2/2)
Use the handy constants for ranges.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libxt_tcp.c')
-rw-r--r-- | extensions/libxt_tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libxt_tcp.c b/extensions/libxt_tcp.c index a9039f0b..82954a4e 100644 --- a/extensions/libxt_tcp.c +++ b/extensions/libxt_tcp.c @@ -121,7 +121,7 @@ parse_tcp_option(const char *option, u_int8_t *result) { unsigned int ret; - if (string_to_number(option, 1, 255, &ret) == -1) + if (string_to_number(option, 1, UINT8_MAX, &ret) == -1) exit_error(PARAMETER_PROBLEM, "Bad TCP option `%s'", option); *result = ret; |