From c5a2851e96afd3e06785551ab90eb1157407e6cb Mon Sep 17 00:00:00 2001 From: gandalf Date: Wed, 26 May 2004 16:04:48 +0000 Subject: Get rid of some warnings when compiling 64bit. --- iptables-save.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'iptables-save.c') diff --git a/iptables-save.c b/iptables-save.c index 3f6e074..14314a5 100644 --- a/iptables-save.c +++ b/iptables-save.c @@ -165,7 +165,7 @@ static void print_rule(const struct ipt_entry *e, /* print counters */ if (counters) - printf("[%llu:%llu] ", e->counters.pcnt, e->counters.bcnt); + printf("[%llu:%llu] ", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); /* print chain name */ printf("-A %s ", chain); @@ -284,7 +284,7 @@ static int do_output(const char *tablename) struct ipt_counters count; printf("%s ", iptc_get_policy(chain, &count, &h)); - printf("[%llu:%llu]\n", count.pcnt, count.bcnt); + printf("[%llu:%llu]\n", (unsigned long long)count.pcnt, (unsigned long long)count.bcnt); } else { printf("- [0:0]\n"); } -- cgit v1.2.3