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/gprs/gprs_gmm.c | |
parent | f3a1ca5d047d13acc3e94173b994afa2219d51de (diff) |
tweak tmp_rand[] type to avoid compiler warnings
Diffstat (limited to 'openbsc/src/gprs/gprs_gmm.c')
-rw-r--r-- | openbsc/src/gprs/gprs_gmm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c index 30a585de9..aa376d848 100644 --- a/openbsc/src/gprs/gprs_gmm.c +++ b/openbsc/src/gprs/gprs_gmm.c @@ -1087,7 +1087,7 @@ static int gsm48_rx_gmm_att_req(struct sgsn_mm_ctx *ctx, struct msgb *msg, if (ctx->ran_type == MM_CTX_T_GERAN_Gb) ctx->gb.cell_id = cid; else if (ctx->ran_type == MM_CTX_T_UTRAN_Iu) { - uint8_t tmp_rand[16]; + unsigned char tmp_rand[16]; struct osmo_auth_vector vec; /* Ki 000102030405060708090a0b0c0d0e0f */ struct osmo_sub_auth_data auth = { @@ -1103,7 +1103,7 @@ static int gsm48_rx_gmm_att_req(struct sgsn_mm_ctx *ctx, struct msgb *msg, /* XXX: Hack to make 3G auth work with special SIM card */ ctx->auth_state = SGSN_AUTH_AUTHENTICATE; - RAND_bytes(&tmp_rand, 16); + RAND_bytes(tmp_rand, 16); memset(&vec, 0, sizeof(vec)); osmo_auth_gen_vec(&vec, &auth, tmp_rand); |