aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-01-23 17:26:10 +0100
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-01-23 17:30:00 +0100
commit3992249c646391a27ab13fe4bd25f5febd10fcec (patch)
tree10542621487c89d7147a2d6de49002f864ff8869
parentaf48e77f2392b16db7f879e712be0e0b2838421d (diff)
l1sap: fix gsmtap_ph_{data,pdch,rach}(): use 'const'
-rw-r--r--src/common/l1sap.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 439db03d..eb610dc4 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -368,8 +368,9 @@ const struct value_string gsmtap_sapi_names[] = {
};
/* send primitive as gsmtap */
-static int gsmtap_ph_data(struct osmo_phsap_prim *l1sap, uint8_t *chan_type,
- uint8_t *ss, uint32_t fn, uint8_t **data, unsigned int *len,
+static int gsmtap_ph_data(const struct osmo_phsap_prim *l1sap,
+ uint8_t *chan_type, uint8_t *ss, uint32_t fn,
+ uint8_t **data, unsigned int *len,
uint8_t num_agch)
{
struct msgb *msg = l1sap->oph.msg;
@@ -411,8 +412,9 @@ static int gsmtap_ph_data(struct osmo_phsap_prim *l1sap, uint8_t *chan_type,
return 0;
}
-static int gsmtap_pdch(struct osmo_phsap_prim *l1sap, uint8_t *chan_type,
- uint8_t *ss, uint32_t fn, uint8_t **data, unsigned int *len)
+static int gsmtap_pdch(const struct osmo_phsap_prim *l1sap,
+ uint8_t *chan_type, uint8_t *ss, uint32_t fn,
+ uint8_t **data, unsigned int *len)
{
struct msgb *msg = l1sap->oph.msg;
@@ -430,8 +432,9 @@ static int gsmtap_pdch(struct osmo_phsap_prim *l1sap, uint8_t *chan_type,
return 0;
}
-static int gsmtap_ph_rach(struct osmo_phsap_prim *l1sap, uint8_t *chan_type,
- uint8_t *tn, uint8_t *ss, uint32_t *fn, uint8_t **data, unsigned int *len)
+static int gsmtap_ph_rach(const struct osmo_phsap_prim *l1sap, uint8_t *chan_type,
+ uint8_t *tn, uint8_t *ss, uint32_t *fn,
+ uint8_t **data, unsigned int *len)
{
uint8_t chan_nr = l1sap->u.rach_ind.chan_nr;
static uint8_t ra_buf[2];