Change in osmo-ccid-firmware[master]: Check for osmo_fsm_register() error return value

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
Sun Dec 1 12:30:39 UTC 2019


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16364 )


Change subject: Check for osmo_fsm_register() error return value
......................................................................

Check for osmo_fsm_register() error return value

Change-Id: Id2556cf01341b67735fff2685d2f7532f50a4850
---
M ccid_common/iso7816_fsm.c
1 file changed, 4 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/64/16364/1

diff --git a/ccid_common/iso7816_fsm.c b/ccid_common/iso7816_fsm.c
index 412bea7..c9eba8d 100644
--- a/ccid_common/iso7816_fsm.c
+++ b/ccid_common/iso7816_fsm.c
@@ -1609,8 +1609,8 @@
 
 static __attribute__((constructor)) void on_dso_load_iso7816(void)
 {
-	osmo_fsm_register(&iso7816_3_fsm);
-	osmo_fsm_register(&atr_fsm);
-	osmo_fsm_register(&tpdu_fsm);
-	osmo_fsm_register(&pps_fsm);
+	OSMO_ASSERT(osmo_fsm_register(&iso7816_3_fsm) == 0);
+	OSMO_ASSERT(osmo_fsm_register(&atr_fsm) == 0);
+	OSMO_ASSERT(osmo_fsm_register(&tpdu_fsm) == 0);
+	OSMO_ASSERT(osmo_fsm_register(&pps_fsm) == 0);
 }

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16364
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: Id2556cf01341b67735fff2685d2f7532f50a4850
Gerrit-Change-Number: 16364
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191201/a7cb706a/attachment.htm>


More information about the gerrit-log mailing list