aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/mncc.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-12-23 01:07:46 +0100
committerHarald Welte <laforge@gnumonks.org>2011-01-01 17:23:42 +0100
commit29b64e9708297d604b57b5a4779996fa5ca0b2f7 (patch)
tree0ce715d1123143f3eb5050f57aef1ac9cc160162 /openbsc/src/mncc.c
parent04dc88fb9d364a9d841e4be53dca4116b28aaad6 (diff)
MNCC: pass the actual 'struct msgb' down the mncc_recv() callback
this is required as we no longer have a dequeue-handler that can take care of free()ing the message after passing it to the MNCC handler.
Diffstat (limited to 'openbsc/src/mncc.c')
-rw-r--r--openbsc/src/mncc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/openbsc/src/mncc.c b/openbsc/src/mncc.c
index d20b4efda..34093a8b1 100644
--- a/openbsc/src/mncc.c
+++ b/openbsc/src/mncc.c
@@ -110,7 +110,5 @@ void mncc_set_cause(struct gsm_mncc *data, int loc, int val)
void cc_tx_to_mncc(struct gsm_network *net, struct msgb *msg)
{
- struct gsm_mncc *mncc = msgb_data(msg);
-
- net->mncc_recv(net, mncc->msg_type, mncc);
+ net->mncc_recv(net, msg);
}