diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2013-10-08 12:04:42 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-08 14:00:24 +0200 |
commit | 73ae7a9ca0b9f2bbf4a6800ed8e9aa9bbd99d597 (patch) | |
tree | 2fb7a6dad1e1a45b6adba12356869af8df7272b1 /tests/auth | |
parent | 42e0dc0cc3d20b4c222151dc7a9b5e63dabac734 (diff) |
tests: Fix warnings
This fixes warnings that are raised by missing includes, missing casts,
missing return statements, using printf %lu with uint64_t, and unused
symbols.
Diffstat (limited to 'tests/auth')
-rw-r--r-- | tests/auth/milenage_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auth/milenage_test.c b/tests/auth/milenage_test.c index 7c996f02..0223764a 100644 --- a/tests/auth/milenage_test.c +++ b/tests/auth/milenage_test.c @@ -7,6 +7,8 @@ #include <osmocom/crypt/auth.h> #include <osmocom/core/utils.h> +int milenage_opc_gen(uint8_t *opc, const uint8_t *k, const uint8_t *op); + static void dump_auth_vec(struct osmo_auth_vector *vec) { printf("RAND:\t%s\n", osmo_hexdump(vec->rand, sizeof(vec->rand))); @@ -88,7 +90,7 @@ int main(int argc, char **argv) if (rc < 0) { printf("AUTS failed\n"); } else { - printf("AUTS success: SEQ.MS = %lu\n", test_aud.u.umts.sqn); + printf("AUTS success: SEQ.MS = %llu\n", (unsigned long long)test_aud.u.umts.sqn); } opc_test(&test_aud); |