summaryrefslogtreecommitdiffstats
path: root/iptables-save.c
diff options
context:
space:
mode:
authorMartin Josefsson <gandalf@wlug.westbo.se>2004-05-26 16:04:48 +0000
committerMartin Josefsson <gandalf@wlug.westbo.se>2004-05-26 16:04:48 +0000
commita28d495285ad7dd9f286d63958cf20d74eec6bcb (patch)
treebb98ee50030d4eb2757b490aad389e896f4db537 /iptables-save.c
parent1eb0081027ee567e822b24377ea614e66c408ff2 (diff)
Get rid of some warnings when compiling 64bit.
Diffstat (limited to 'iptables-save.c')
-rw-r--r--iptables-save.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables-save.c b/iptables-save.c
index 3f6e0745..14314a5f 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");
}