aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-08-24 18:30:54 +0200
committerIvan Kluchnikov <kluchnikovi@gmail.com>2013-10-02 18:09:10 +0400
commit52c911b3b495b9a345c290f686a0caea05b9d156 (patch)
tree8034e5815eb68b3c2b1f6437429132f8d858cdcf
parent2023bd18b6fd6bfbe92e2a57c37ed42455779ea1 (diff)
tbf: constify the IMSI argument for the downlink assignment
-rw-r--r--src/gprs_rlcmac.h2
-rw-r--r--src/gprs_rlcmac_data.cpp6
-rw-r--r--src/pcu_l1_if.cpp2
-rw-r--r--src/pcu_l1_if.h2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/gprs_rlcmac.h b/src/gprs_rlcmac.h
index 4329cb88..8de74174 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 ff5274fe..294753d1 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 43bd36e3..218dc23a 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 715f89fd..f01b95ad 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);