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 28 10:09:13 UTC 2019


Vadim Yanitskiy has submitted this change and it was merged. ( 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(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



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: merged
Gerrit-Change-Id: I80cd2e5645d6e391080376250c0853a3f3f821ef
Gerrit-Change-Number: 13371
Gerrit-PatchSet: 2
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190328/590ca579/attachment.html>


More information about the gerrit-log mailing list