diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-04-13 19:13:35 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-04-20 11:23:00 +0200 |
commit | afce55a4bc6cd4ccdffece99ad37cc1b20b663e7 (patch) | |
tree | bc26dcdf6c2edc09f6ff1958812cabd2eb453ddc /openbsc/src/libmsc | |
parent | f3a1ca5d047d13acc3e94173b994afa2219d51de (diff) |
tweak tmp_rand[] type to avoid compiler warnings
Diffstat (limited to 'openbsc/src/libmsc')
-rw-r--r-- | openbsc/src/libmsc/gsm_04_08.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |