From 0d199bb941aac7052a19dd5d75520d016fff1765 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net" Date: Tue, 29 Jan 2008 13:48:05 +0000 Subject: [PATCH]: fix gcc warnings Max Kellermann --- extensions/libxt_quota.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/libxt_quota.c') diff --git a/extensions/libxt_quota.c b/extensions/libxt_quota.c index 7d73033..57050f2 100644 --- a/extensions/libxt_quota.c +++ b/extensions/libxt_quota.c @@ -13,7 +13,7 @@ static const struct option quota_opts[] = { {"quota", 1, NULL, '1'}, - { } + { .name = NULL } }; /* print usage */ @@ -49,7 +49,7 @@ parse_quota(const char *s, u_int64_t * quota) printf("Quota: %llu\n", *quota); #endif - if (*quota == -1) + if (*quota == (u_int64_t)-1) exit_error(PARAMETER_PROBLEM, "quota invalid: '%s'\n", s); else return 1; -- cgit v1.2.3