Change in libosmocore[master]: bssgp_bvc_fsm: check return value of osmo_fsm_register()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sat Feb 6 16:06:59 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/22733 )

Change subject: bssgp_bvc_fsm: check return value of osmo_fsm_register()
......................................................................

bssgp_bvc_fsm: check return value of osmo_fsm_register()

Change-Id: I0ade2e476a035bb44b2f135ece4552d015852274
Fixes: CID#215717
---
M src/gb/bssgp_bvc_fsm.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, approved



diff --git a/src/gb/bssgp_bvc_fsm.c b/src/gb/bssgp_bvc_fsm.c
index 6de0028..6b8bd14 100644
--- a/src/gb/bssgp_bvc_fsm.c
+++ b/src/gb/bssgp_bvc_fsm.c
@@ -819,5 +819,5 @@
 
 static __attribute__((constructor)) void on_dso_load_bvc_fsm(void)
 {
-	osmo_fsm_register(&bssgp_bvc_fsm);
+	OSMO_ASSERT(osmo_fsm_register(&bssgp_bvc_fsm) == 0);
 }

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I0ade2e476a035bb44b2f135ece4552d015852274
Gerrit-Change-Number: 22733
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210206/070200f9/attachment.htm>


More information about the gerrit-log mailing list