aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-03-21 20:55:19 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-03-28 10:09:11 +0000
commit4eaefc222229edd9bacffa5abe8486f192b94d46 (patch)
tree7e26dc7ea6e8e9ff60663b8d4989b5e9342743a1
parent118a0b890e24086362006cab7d2539e5b76fa396 (diff)
libmsc/sgs_iface.c: register sgs_vlr_reset_fsm on DSO load
-rw-r--r--src/libmsc/sgs_iface.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libmsc/sgs_iface.c b/src/libmsc/sgs_iface.c
index f2e74cb..95b68f8 100644
--- a/src/libmsc/sgs_iface.c
+++ b/src/libmsc/sgs_iface.c
@@ -1258,8 +1258,12 @@ struct sgs_state *sgs_iface_init(void *ctx, struct gsm_network *network)
return NULL;
g_sgs = sgs;
- osmo_fsm_register(&sgs_vlr_reset_fsm);
sgs_server_open(sgs);
return sgs;
}
+
+static __attribute__((constructor)) void on_dso_load(void)
+{
+ OSMO_ASSERT(osmo_fsm_register(&sgs_vlr_reset_fsm) == 0);
+}