mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-03 13:33:29 +00:00
bsc: Fix compiler warning and return from the method with a value.
This commit is contained in:
@@ -459,7 +459,7 @@ static int dtap_rcvmsg(struct osmo_bsc_sccp_con *conn,
|
|||||||
struct dtap_header *header;
|
struct dtap_header *header;
|
||||||
struct msgb *gsm48;
|
struct msgb *gsm48;
|
||||||
uint8_t *data;
|
uint8_t *data;
|
||||||
int rc;
|
int rc, dtap_rc;
|
||||||
|
|
||||||
LOGP(DMSC, LOGL_DEBUG, "Rx MSC DTAP: %s\n",
|
LOGP(DMSC, LOGL_DEBUG, "Rx MSC DTAP: %s\n",
|
||||||
osmo_hexdump(msg->l3h, length));
|
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 */
|
/* pass it to the filter for extra actions */
|
||||||
rc = bsc_scan_msc_msg(conn->conn, gsm48);
|
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)
|
if (rc == BSS_SEND_USSD)
|
||||||
bsc_send_welcome_ussd(conn->conn);
|
bsc_send_welcome_ussd(conn->conn);
|
||||||
|
return dtap_rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
int bsc_handle_udt(struct osmo_msc_data *msc,
|
int bsc_handle_udt(struct osmo_msc_data *msc,
|
||||||
|
|||||||
Reference in New Issue
Block a user