summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte2011-08-19 13:32:18 +0200
committerHarald Welte2011-08-19 13:32:18 +0200
commit3e1d84b3e01b8c78b416b620935462ede2c37209 (patch)
tree04d05dfbd0febfcd5430e4cb4cfeaff23cc0f924
parenthsl: remove unsued 'proto' variable (diff)
downloadlibosmo-abis-3e1d84b3e01b8c78b416b620935462ede2c37209.tar.gz
libosmo-abis-3e1d84b3e01b8c78b416b620935462ede2c37209.tar.xz
libosmo-abis-3e1d84b3e01b8c78b416b620935462ede2c37209.zip
hsl: use PRIx64 / inttypes.h for uint64_t format string
-rw-r--r--src/input/hsl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input/hsl.c b/src/input/hsl.c
index d5010d1..ab822c0 100644
--- a/src/input/hsl.c
+++ b/src/input/hsl.c
@@ -39,6 +39,7 @@
#include <errno.h>
#include <string.h>
#include <time.h>
+#include <inttypes.h>
#include <sys/fcntl.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
@@ -431,7 +432,7 @@ static int hsl_bts_connect(struct ipa_client_link *link)
*msgb_put(msg, 1) = 0x80;
*msgb_put(msg, 1) = 0x80;
*msgb_put(msg, 1) = unit->swversion;
- snprintf(serno_buf, sizeof(serno_buf), "%llx", unit->serno);
+ snprintf(serno_buf, sizeof(serno_buf), "%"PRIx64, unit->serno);
serno = msgb_put(msg, strlen(serno_buf)+1);
memcpy(serno, serno_buf, strlen(serno_buf));
ipa_msg_push_header(msg, 0);