summaryrefslogtreecommitdiffstats
path: root/arptables.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-04-02 10:33:18 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-04-02 10:33:34 +0200
commit935acea0326785834b22f2233e1b1e3f8d000f7d (patch)
tree16934edff5479aad71a6c3aa5acf0725c359ea15 /arptables.c
parent5700dbf07266c1ab888dceee75a040eb7af40950 (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 'arptables.c')
-rw-r--r--arptables.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arptables.c b/arptables.c
index 845e226..f820ffa 100644
--- a/arptables.c
+++ b/arptables.c
@@ -2164,16 +2164,17 @@ int do_command(int argc, char *argv[], char **table, arptc_handle_t *handle)
"-%c requires packet and byte counter",
opt2char(OPT_COUNTERS));
- if (sscanf(pcnt, "%"PRIu64, &fw.counters.pcnt) != 1)
+ if (sscanf(pcnt, "%"PRIu64,
+ (uint64_t *)&fw.counters.pcnt) != 1)
exit_error(PARAMETER_PROBLEM,
"-%c packet counter not numeric",
opt2char(OPT_COUNTERS));
- if (sscanf(bcnt, "%"PRIu64, &fw.counters.bcnt) != 1)
+ if (sscanf(bcnt, "%"PRIu64,
+ (uint64_t *)&fw.counters.bcnt) != 1)
exit_error(PARAMETER_PROBLEM,
"-%c byte counter not numeric",
opt2char(OPT_COUNTERS));
-
break;