aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/osmo_bsc_bssap.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-01-07 18:35:40 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2018-01-07 18:36:38 +0100
commit3b7a31d327f290dfa05ab9f6e09f00a83165e371 (patch)
tree2c989bd35db9eb1c3781b11c1df6e2afd640d72d /src/osmo-bsc/osmo_bsc_bssap.c
parent607f8c41bc4606a589a0c2e751812dfd12d94cae (diff)
osmo_bsc_bssap.c: Fix discard of const qualifier in assignment
Fixes following compilation warning: osmo-bsc/src/osmo-bsc/osmo_bsc_bssap.c:442:10: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] enc_key = &data[1]; ^ Change-Id: Ieeab5a822d50ac1267362f57196b80073a7901f9
Diffstat (limited to 'src/osmo-bsc/osmo_bsc_bssap.c')
-rw-r--r--src/osmo-bsc/osmo_bsc_bssap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bsc/osmo_bsc_bssap.c b/src/osmo-bsc/osmo_bsc_bssap.c
index 45861ccce..0ecc11c6b 100644
--- a/src/osmo-bsc/osmo_bsc_bssap.c
+++ b/src/osmo-bsc/osmo_bsc_bssap.c
@@ -401,7 +401,7 @@ static int bssmap_handle_cipher_mode(struct osmo_bsc_sccp_con *conn,
struct msgb *resp;
int reject_cause = -1;
int include_imeisv = 1;
- uint8_t *enc_key;
+ const uint8_t *enc_key;
uint16_t enc_key_len;
uint8_t enc_bits_bsc;
uint8_t enc_bits_msc;