aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-12-03 15:32:54 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-12-10 12:09:22 +0100
commit3d4d79d89090fcbe97de9b10aa9f638461648218 (patch)
treee95da489cfd2c8c4f44b3458cdbdb32c96894f4b
parentd2361d970af8fe5d624ed3977982c21c327ac986 (diff)
bsc: Fix compiler warning and return from the method with a value.
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_bssap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_bssap.c b/openbsc/src/osmo-bsc/osmo_bsc_bssap.c
index 4190abf18..6b8504d21 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_bssap.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_bssap.c
@@ -459,7 +459,7 @@ static int dtap_rcvmsg(struct osmo_bsc_sccp_con *conn,
struct dtap_header *header;
struct msgb *gsm48;
uint8_t *data;
- int rc;
+ int rc, dtap_rc;
LOGP(DMSC, LOGL_DEBUG, "Rx MSC DTAP: %s\n",
osmo_hexdump(msg->l3h, length));
@@ -497,9 +497,10 @@ static int dtap_rcvmsg(struct osmo_bsc_sccp_con *conn,
/* pass it to the filter for extra actions */
rc = bsc_scan_msc_msg(conn->conn, gsm48);
- gsm0808_submit_dtap(conn->conn, gsm48, header->link_id, 1);
+ dtap_rc = gsm0808_submit_dtap(conn->conn, gsm48, header->link_id, 1);
if (rc == BSS_SEND_USSD)
bsc_send_welcome_ussd(conn->conn);
+ return dtap_rc;
}
int bsc_handle_udt(struct osmo_msc_data *msc,