From a652abc5bf75435ba7f1c96ed914cf5805fc326f Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 14 Jul 2013 09:11:47 +0200 Subject: utils: Fix compiler warnings n the osmo-auc-gen utility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- utils/osmo-auc-gen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 #include #include +#include +#include #include #include @@ -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); } -- cgit v1.2.3