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
diff --git a/utils/osmo-auc-gen.c b/utils/osmo-auc-gen.c
index 7a3c124..ee349ae 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 @@
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);
}