mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-01 20:43:47 +00:00
bsc: Correct the cast for the signal data
There is a dedicated msc_signal_data cast the signal_data to this type and enjoy working connection closing on a per MSC base.
This commit is contained in:
@@ -264,14 +264,14 @@ static void bsc_close_connections(struct bsc_msc_connection *msc_con)
|
|||||||
static int handle_msc_signal(unsigned int subsys, unsigned int signal,
|
static int handle_msc_signal(unsigned int subsys, unsigned int signal,
|
||||||
void *handler_data, void *signal_data)
|
void *handler_data, void *signal_data)
|
||||||
{
|
{
|
||||||
struct osmo_msc_data *data;
|
struct msc_signal_data *msc;
|
||||||
|
|
||||||
if (subsys != SS_MSC)
|
if (subsys != SS_MSC)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
data = (struct osmo_msc_data *) signal_data;
|
msc = signal_data;
|
||||||
if (signal == S_MSC_LOST)
|
if (signal == S_MSC_LOST)
|
||||||
bsc_close_connections(data->msc_con);
|
bsc_close_connections(msc->data->msc_con);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user