summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-14 09:11:47 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-14 09:14:37 +0200
commita652abc5bf75435ba7f1c96ed914cf5805fc326f (patch)
treedf56c95bb0971ebc7abc3ee8db24bf87b87d0145 /utils
parent6a75d16c6d8f9718c925d208538088404c6942aa (diff)
utils: Fix compiler warnings n the osmo-auc-gen utility
osmo-auc-gen.c:217:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration] osmo-auc-gen.c:249:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint64_t’ [-Wformat] Fixes: Coverity CID 1040668
Diffstat (limited to 'utils')
-rw-r--r--utils/osmo-auc-gen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/osmo-auc-gen.c b/utils/osmo-auc-gen.c
index 7a3c124c..ee349ae6 100644
--- a/utils/osmo-auc-gen.c
+++ b/utils/osmo-auc-gen.c
@@ -27,6 +27,8 @@
#include <string.h>
#include <getopt.h>
#include <unistd.h>
+#include <inttypes.h>
+#include <time.h>
#include <osmocom/crypt/auth.h>
#include <osmocom/core/utils.h>
@@ -246,7 +248,7 @@ int main(int argc, char **argv)
dump_auth_vec(vec);
if (auts_is_set)
- printf("AUTS success: SEQ.MS = %lu\n", test_aud.u.umts.sqn);
+ printf("AUTS success: SEQ.MS = %" PRIu64 "\n", test_aud.u.umts.sqn);
exit(0);
}