[PATCH] osmo-bsc[master]: osmo_bsc_bssap.c: Fix discard of const qualifier in assignment

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Mon Jan 8 10:10:32 UTC 2018


Review at  https://gerrit.osmocom.org/5674

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
---
M src/osmo-bsc/osmo_bsc_bssap.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/74/5674/1

diff --git a/src/osmo-bsc/osmo_bsc_bssap.c b/src/osmo-bsc/osmo_bsc_bssap.c
index 45861cc..0ecc11c 100644
--- a/src/osmo-bsc/osmo_bsc_bssap.c
+++ b/src/osmo-bsc/osmo_bsc_bssap.c
@@ -401,7 +401,7 @@
 	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;

-- 
To view, visit https://gerrit.osmocom.org/5674
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieeab5a822d50ac1267362f57196b80073a7901f9
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>



More information about the gerrit-log mailing list