From 0e412c7a552055382a49e59bc744a718d9c2595a Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 27 Jun 2011 21:01:55 +0200 Subject: [PATCH] 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. --- openbsc/src/osmo-bsc/osmo_bsc_sccp.c | 6 +++--- 1 file 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; }