aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc/msc_ifaces.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-02-12 14:43:27 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-03-03 16:19:10 +0100
commit292f1ce533e0e93dda1d05b178261fc807c8c0c8 (patch)
tree9ef8003c4ecaed2cfcc437a93c817865cc450202 /openbsc/src/libmsc/msc_ifaces.c
parent23e7f28c5c77a57aad5331c5e27b29e2eccfe7c3 (diff)
mscsplit: fix compilation and comments. move msc_api.h.
Diffstat (limited to 'openbsc/src/libmsc/msc_ifaces.c')
-rw-r--r--openbsc/src/libmsc/msc_ifaces.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/openbsc/src/libmsc/msc_ifaces.c b/openbsc/src/libmsc/msc_ifaces.c
index 88100926d..0b4a554c9 100644
--- a/openbsc/src/libmsc/msc_ifaces.c
+++ b/openbsc/src/libmsc/msc_ifaces.c
@@ -28,17 +28,17 @@ static int tx_dummy_a(struct msgb *msg, uint8_t sapi)
{
LOGP(DMSC, LOGL_ERROR,
"attempt to send message via uninitialized A-interface\n");
- return -1
+ return -1;
}
static int tx_dummy_iu_cs(struct msgb *msg, uint8_t sapi)
{
LOGP(DMSC, LOGL_ERROR,
"attempt to send message via uninitialized IuCS-interface\n");
- return -1
+ return -1;
}
-struct msc_ifaces *global_msc_ifaces = {
+struct msc_ifaces global_msc_ifaces = {
.a = {
.tx = tx_dummy_a,
},
@@ -57,7 +57,7 @@ static int msc_tx(struct msc_ifaces *ifaces,
/* TODO: msg->dst = <A-iface token> */
return ifaces->a.tx(msg, 0);
- case IFACE_IUCS:
+ case IFACE_IU:
msg->dst = conn->iu.ue_ctx;
return ifaces->iu_cs.tx(msg, 0);
@@ -73,6 +73,6 @@ static int msc_tx(struct msc_ifaces *ifaces,
int msc_tx_dtap(struct gsm_subscriber_connection *conn,
struct msgb *msg)
{
- msc_tx(global_msc_ifaces, conn, msg);
+ return msc_tx(&global_msc_ifaces, conn, msg);
}