From a80975497968e69b23f56bf15d346c65bec381f2 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 27 Jan 2009 17:39:01 +0100 Subject: 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 --- extensions/libxt_quota.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/libxt_quota.c') diff --git a/extensions/libxt_quota.c b/extensions/libxt_quota.c index 5007f7cb..90da1cd4 100644 --- a/extensions/libxt_quota.c +++ b/extensions/libxt_quota.c @@ -46,7 +46,7 @@ parse_quota(const char *s, u_int64_t * quota) printf("Quota: %llu\n", *quota); #endif - if (*quota == (u_int64_t)-1) + if (*quota == UINT64_MAX) exit_error(PARAMETER_PROBLEM, "quota invalid: '%s'\n", s); else return 1; -- cgit v1.2.3