From afce55a4bc6cd4ccdffece99ad37cc1b20b663e7 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 13 Apr 2016 19:13:35 +0200 Subject: tweak tmp_rand[] type to avoid compiler warnings --- openbsc/src/libmsc/gsm_04_08.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbsc/src/libmsc') diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c index 418a505b0..be03fd7d5 100644 --- a/openbsc/src/libmsc/gsm_04_08.c +++ b/openbsc/src/libmsc/gsm_04_08.c @@ -146,7 +146,7 @@ void allocate_security_operation(struct gsm_subscriber_connection *conn) int iu_hack__get_hardcoded_auth_tuple(struct gsm_auth_tuple *atuple) { - uint8_t tmp_rand[16]; + unsigned char tmp_rand[16]; struct osmo_auth_vector vec; /* Ki 000102030405060708090a0b0c0d0e0f */ struct osmo_sub_auth_data auth = { @@ -159,7 +159,7 @@ int iu_hack__get_hardcoded_auth_tuple(struct gsm_auth_tuple *atuple) }, }; - RAND_bytes(&tmp_rand, sizeof(tmp_rand)); + RAND_bytes(tmp_rand, sizeof(tmp_rand)); memset(&vec, 0, sizeof(vec)); osmo_auth_gen_vec(&vec, &auth, tmp_rand); -- cgit v1.2.3