Change in osmo-msc[master]: libmsc/sgs_iface.c: register sgs_vlr_reset_fsm on DSO load

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Thu Mar 21 19:09:47 UTC 2019


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/13371


Change subject: libmsc/sgs_iface.c: register sgs_vlr_reset_fsm on DSO load
......................................................................

libmsc/sgs_iface.c: register sgs_vlr_reset_fsm on DSO load

Change-Id: I80cd2e5645d6e391080376250c0853a3f3f821ef
---
M src/libmsc/sgs_iface.c
1 file changed, 5 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/71/13371/1

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 @@
 		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);
+}

-- 
To view, visit https://gerrit.osmocom.org/13371
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I80cd2e5645d6e391080376250c0853a3f3f821ef
Gerrit-Change-Number: 13371
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190321/3b26ef04/attachment.html>


More information about the gerrit-log mailing list