summaryrefslogtreecommitdiffstats
path: root/ip6tables-save.c
diff options
context:
space:
mode:
authorgandalf <gandalf>2004-05-26 16:04:48 +0000
committergandalf <gandalf>2004-05-26 16:04:48 +0000
commitc5a2851e96afd3e06785551ab90eb1157407e6cb (patch)
treebb98ee50030d4eb2757b490aad389e896f4db537 /ip6tables-save.c
parent74c5da055ef1239a504d4624a7e1a1e5e46a5cf0 (diff)
Get rid of some warnings when compiling 64bit.
Diffstat (limited to 'ip6tables-save.c')
-rw-r--r--ip6tables-save.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ip6tables-save.c b/ip6tables-save.c
index 50757a9..9deed33 100644
--- a/ip6tables-save.c
+++ b/ip6tables-save.c
@@ -149,7 +149,7 @@ static void print_rule(const struct ip6t_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);
@@ -277,7 +277,7 @@ static int do_output(const char *tablename)
struct ip6t_counters count;
printf("%s ",
ip6tc_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");
}