aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-06-27 21:01:55 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-07-19 19:56:53 +0200
commit0e412c7a552055382a49e59bc744a718d9c2595a (patch)
tree6bfbcf3ebcfaf8b093bc753a3e875741f60e9d4e
parent74db7744ee76958297f2a820033c5891e6beefe8 (diff)
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.
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_sccp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_sccp.c b/openbsc/src/osmo-bsc/osmo_bsc_sccp.c
index c17690831..4f03b52ff 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_sccp.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_sccp.c
@@ -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,
void *handler_data, void *signal_data)
{
- struct osmo_msc_data *data;
+ struct msc_signal_data *msc;
if (subsys != SS_MSC)
return 0;
- data = (struct osmo_msc_data *) signal_data;
+ msc = signal_data;
if (signal == S_MSC_LOST)
- bsc_close_connections(data->msc_con);
+ bsc_close_connections(msc->data->msc_con);
return 0;
}