diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-10-15 23:09:41 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-10-16 14:14:25 +0700 |
commit | 8d18e106a9058abcc2719fd3d3ecec10233c3713 (patch) | |
tree | 7daed8f691a16afea32efbdd3ffbfba07d8d2f57 | |
parent | ed9e949dd991dd36bb8aa1f172457f5cb1b07c77 (diff) |
mobile: mncc_recv_internal(): make struct gsm_mncc ptr const
Change-Id: I0a5522b7df112bfaefc684c872a618c1e9118e61
-rw-r--r-- | src/host/layer23/src/mobile/mnccms.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/host/layer23/src/mobile/mnccms.c b/src/host/layer23/src/mobile/mnccms.c index 60d2e558..6add5d58 100644 --- a/src/host/layer23/src/mobile/mnccms.c +++ b/src/host/layer23/src/mobile/mnccms.c @@ -34,7 +34,8 @@ static uint32_t new_callref = 1; static LLIST_HEAD(call_list); -static int dtmf_statemachine(struct gsm_call *call, struct gsm_mncc *mncc); +static int dtmf_statemachine(struct gsm_call *call, + const struct gsm_mncc *mncc); static void timeout_dtmf(void *arg); /* @@ -258,7 +259,7 @@ int mncc_recv_external(struct osmocom_ms *ms, int msg_type, void *arg) int mncc_recv_internal(struct osmocom_ms *ms, int msg_type, void *arg) { struct gsm_settings *set = &ms->settings; - struct gsm_mncc *data = arg; + const struct gsm_mncc *data = arg; struct gsm_call *call = get_call_ref(data->callref); struct gsm_mncc mncc; uint8_t cause; @@ -727,7 +728,8 @@ int mncc_retrieve(struct osmocom_ms *ms, int number) * DTMF */ -static int dtmf_statemachine(struct gsm_call *call, struct gsm_mncc *mncc) +static int dtmf_statemachine(struct gsm_call *call, + const struct gsm_mncc *mncc) { struct osmocom_ms *ms = call->ms; struct gsm_mncc dtmf; |