diff options
author | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2007-09-05 14:19:23 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2007-09-05 14:19:23 +0000 |
commit | f63d0cb8ddce6070abd9d96c5311157042deed3c (patch) | |
tree | becf16a74f3553401656daea895af8044a3c90a3 /extensions/libxt_connbytes.c | |
parent | 9d575d763958c30a044cc3d8d839b3c39bb67bd2 (diff) |
Fix aligned_u64 type on 64 bit: its an unsigned long, not an unsigned long long.
Fixes compiler warning in quota match.
Diffstat (limited to 'extensions/libxt_connbytes.c')
-rw-r--r-- | extensions/libxt_connbytes.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/extensions/libxt_connbytes.c b/extensions/libxt_connbytes.c index 1a3cf6e..7a99f42 100644 --- a/extensions/libxt_connbytes.c +++ b/extensions/libxt_connbytes.c @@ -42,7 +42,8 @@ parse_range(const char *arg, struct xt_connbytes_info *si) } if (si->count.from > si->count.to) exit_error(PARAMETER_PROBLEM, "%llu should be less than %llu", - si->count.from, si->count.to); + (unsigned long long)si->count.from, + (unsigned long long)si->count.to); } /* Function which parses command options; returns true if it @@ -152,11 +153,13 @@ print(const void *ip, struct xt_connbytes_info *sinfo = (struct xt_connbytes_info *)match->data; if (sinfo->count.from > sinfo->count.to) - printf("connbytes ! %llu:%llu ", sinfo->count.to, - sinfo->count.from); + printf("connbytes ! %llu:%llu ", + (unsigned long long)sinfo->count.to, + (unsigned long long)sinfo->count.from); else - printf("connbytes %llu:%llu ",sinfo->count.from, - sinfo->count.to); + printf("connbytes %llu:%llu ", + (unsigned long long)sinfo->count.from, + (unsigned long long)sinfo->count.to); fputs("connbytes mode ", stdout); print_mode(sinfo); @@ -171,11 +174,13 @@ static void save(const void *ip, const struct xt_entry_match *match) struct xt_connbytes_info *sinfo = (struct xt_connbytes_info *)match->data; if (sinfo->count.from > sinfo->count.to) - printf("! --connbytes %llu:%llu ", sinfo->count.to, - sinfo->count.from); + printf("! --connbytes %llu:%llu ", + (unsigned long long)sinfo->count.to, + (unsigned long long)sinfo->count.from); else - printf("--connbytes %llu:%llu ", sinfo->count.from, - sinfo->count.to); + printf("--connbytes %llu:%llu ", + (unsigned long long)sinfo->count.from, + (unsigned long long)sinfo->count.to); fputs("--connbytes-mode ", stdout); print_mode(sinfo); |