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
This commit is contained in:
Holger Hans Peter Freyther 2013-07-14 09:11:47 +02:00
parent 6a75d16c6d
commit a652abc5bf
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}