mirror of https://gerrit.osmocom.org/libosmocore
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:
parent
6a75d16c6d
commit
a652abc5bf
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue