[PATCH 3/3] tbf: constify the IMSI argument for the downlink assignment

Holger Hans Peter Freyther hfreyther at sysmocom.de
Sun Aug 25 11:01:36 UTC 2013


From: Holger Hans Peter Freyther <holger at moiji-mobile.com>

---
 src/gprs_rlcmac.h        | 2 +-
 src/gprs_rlcmac_data.cpp | 6 +++---
 src/pcu_l1_if.cpp        | 2 +-
 src/pcu_l1_if.h          | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/gprs_rlcmac.h b/src/gprs_rlcmac.h
index 4329cb8..8de7417 100644
--- a/src/gprs_rlcmac.h
+++ b/src/gprs_rlcmac.h
@@ -392,7 +392,7 @@ struct msgb *gprs_rlcmac_send_packet_downlink_assignment(
         struct gprs_rlcmac_tbf *tbf, uint32_t fn);
 
 void gprs_rlcmac_trigger_downlink_assignment(struct gprs_rlcmac_tbf *tbf,
-        struct gprs_rlcmac_tbf *old_tbf, char *imsi);
+        struct gprs_rlcmac_tbf *old_tbf, const char *imsi);
 
 int gprs_rlcmac_downlink_ack(struct gprs_rlcmac_tbf *tbf, uint8_t final,
         uint8_t ssn, uint8_t *rbb);
diff --git a/src/gprs_rlcmac_data.cpp b/src/gprs_rlcmac_data.cpp
index ff5274f..294753d 100644
--- a/src/gprs_rlcmac_data.cpp
+++ b/src/gprs_rlcmac_data.cpp
@@ -74,7 +74,7 @@ struct rlc_li_field {
 }
 
 static void gprs_rlcmac_downlink_assignment(gprs_rlcmac_tbf *tbf, uint8_t poll,
-	char *imsi);
+	const char *imsi);
 
 static int gprs_rlcmac_diag(struct gprs_rlcmac_tbf *tbf)
 {
@@ -1819,7 +1819,7 @@ struct msgb *gprs_rlcmac_send_packet_downlink_assignment(
 }
 
 static void gprs_rlcmac_downlink_assignment(gprs_rlcmac_tbf *tbf, uint8_t poll,
-	char *imsi)
+	const char *imsi)
 {
 	struct gprs_rlcmac_bts *bts = gprs_rlcmac_bts;
 	int plen;
@@ -1840,7 +1840,7 @@ static void gprs_rlcmac_downlink_assignment(gprs_rlcmac_tbf *tbf, uint8_t poll,
 
 /* depending on the current TBF, we assign on PACCH or AGCH */
 void gprs_rlcmac_trigger_downlink_assignment(struct gprs_rlcmac_tbf *tbf,
-	struct gprs_rlcmac_tbf *old_tbf, char *imsi)
+	struct gprs_rlcmac_tbf *old_tbf, const char *imsi)
 {
 #ifdef DEBUG_DL_ASS_IDLE
 	strncpy(debug_imsi, imsi);
diff --git a/src/pcu_l1_if.cpp b/src/pcu_l1_if.cpp
index 43bd36e..218dc23 100644
--- a/src/pcu_l1_if.cpp
+++ b/src/pcu_l1_if.cpp
@@ -174,7 +174,7 @@ void pcu_l1if_tx_agch(bitvec * block, int plen)
 	pcu_tx_data_req(0, 0, PCU_IF_SAPI_AGCH, 0, 0, 0, data, 23);
 }
 
-void pcu_l1if_tx_pch(bitvec * block, int plen, char *imsi)
+void pcu_l1if_tx_pch(bitvec * block, int plen, const char *imsi)
 {
 	uint8_t data[23+3]; /* prefix PLEN */
 
diff --git a/src/pcu_l1_if.h b/src/pcu_l1_if.h
index 715f89f..f01b95a 100644
--- a/src/pcu_l1_if.h
+++ b/src/pcu_l1_if.h
@@ -40,7 +40,7 @@ void pcu_l1if_tx_ptcch(msgb *msg, uint8_t trx, uint8_t ts, uint16_t arfcn,
         uint32_t fn, uint8_t block_nr);
 void pcu_l1if_tx_agch(bitvec * block, int len);
 
-void pcu_l1if_tx_pch(bitvec * block, int plen, char *imsi);
+void pcu_l1if_tx_pch(bitvec * block, int plen, const char *imsi);
 
 int pcu_l1if_open(void);
 void pcu_l1if_close(void);
-- 
1.8.3.2





More information about the osmocom-net-gprs mailing list