diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-04-02 10:33:18 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-04-02 10:33:34 +0200 |
commit | 935acea0326785834b22f2233e1b1e3f8d000f7d (patch) | |
tree | 16934edff5479aad71a6c3aa5acf0725c359ea15 /libarptc | |
parent | 5700dbf07266c1ab888dceee75a040eb7af40950 (diff) |
src: fix compilation warning
libarptc/libarptc.c: In function ‘dump_entry’:
libarptc/libarptc.c:137:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘__u64’ [-Wformat]
libarptc/libarptc.c:137:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘__u64’ [-Wformat]
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'libarptc')
-rw-r--r-- | libarptc/libarptc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarptc/libarptc.c b/libarptc/libarptc.c index 2dcaaef..0025a75 100644 --- a/libarptc/libarptc.c +++ b/libarptc/libarptc.c @@ -134,7 +134,7 @@ dump_entry(STRUCT_ENTRY *e, const TC_HANDLE_T handle) printf("Flags: %02X\n", e->arp.flags); printf("Invflags: %02X\n", e->arp.invflags); printf("Counters: %"PRIu64" packets, %"PRIu64" bytes\n", - e->counters.pcnt, e->counters.bcnt); + (uint64_t)e->counters.pcnt, (uint64_t)e->counters.bcnt); /* printf("Cache: %08X ", e->nfcache); if (e->nfcache & NFC_ALTERED) printf("ALTERED "); |