summaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-03-16 12:18:39 +0100
committerHarald Welte <laforge@gnumonks.org>2014-08-21 15:34:13 +0200
commitad6451fc982defb05c7d9cbb4516342169d7334a (patch)
tree40e2a2ab352fbad74f3af3a44f732b220ef9a347 /openbsc
parent1d3634e0cb6f226aa9474b08180281ce178cf461 (diff)
misc: Use other size modifiers to fix compiler warnings
control_if.c:521:2: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’ [-Wformat] osmo_bsc_bssap.c:473:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘unsigned int’ [-Wformat] mgcp_main.c:162:4: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformatt]
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/libctrl/control_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libctrl/control_if.c b/openbsc/src/libctrl/control_if.c
index d0813422..cc5709d5 100644
--- a/openbsc/src/libctrl/control_if.c
+++ b/openbsc/src/libctrl/control_if.c
@@ -518,7 +518,7 @@ static int get_rate_ctr(struct ctrl_cmd *cmd, void *data)
talloc_free(dup);
- cmd->reply = talloc_asprintf(cmd, "%lu", get_rate_ctr_value(ctr, intv));
+ cmd->reply = talloc_asprintf(cmd, "%"PRIu64, get_rate_ctr_value(ctr, intv));
if (!cmd->reply)
goto oom;