diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-01-27 17:39:01 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-01-27 23:14:29 +0100 |
commit | a80975497968e69b23f56bf15d346c65bec381f2 (patch) | |
tree | b552d7fb9bea99250cbbafc45bb58e8b04c0c073 /extensions/libxt_TPROXY.c | |
parent | 7a63ca74dbcd323217cab7296e68a19b8c9ea6c4 (diff) |
extensions: use UINT_MAX constants over open-coded bits (1/2)
~0 depends on the sizeof(int), so it is better to use UINT32_MAX.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libxt_TPROXY.c')
-rw-r--r-- | extensions/libxt_TPROXY.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libxt_TPROXY.c b/extensions/libxt_TPROXY.c index deb214f8..e9a41a15 100644 --- a/extensions/libxt_TPROXY.c +++ b/extensions/libxt_TPROXY.c @@ -58,7 +58,7 @@ static void parse_tproxy_laddr(const char *s, struct xt_tproxy_target_info *info static void parse_tproxy_mark(char *s, struct xt_tproxy_target_info *info) { - unsigned int value, mask = ~0U; + unsigned int value, mask = UINT32_MAX; char *end; if (!strtonum(s, &end, &value, 0, UINT_MAX)) |