aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2019-12-01 13:23:53 +0100
committerlaforge <laforge@osmocom.org>2019-12-01 12:43:17 +0000
commita868e17c5ea726cd424dc393d56b321fae95bc72 (patch)
tree549cad3062184b5c5ca821e9d613f4dccbad86fe /src
parent1fd50d9abe024b6caf221a0ea67b555b31e42f8e (diff)
check for osmo_fsm_register() error return values
Diffstat (limited to 'src')
-rw-r--r--src/sgsn/gprs_gmm_attach.c2
-rw-r--r--src/sgsn/gprs_gmm_fsm.c2
-rw-r--r--src/sgsn/gprs_mm_state_gb_fsm.c2
-rw-r--r--src/sgsn/gprs_mm_state_iu_fsm.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/sgsn/gprs_gmm_attach.c b/src/sgsn/gprs_gmm_attach.c
index 130f8d1c..c903a016 100644
--- a/src/sgsn/gprs_gmm_attach.c
+++ b/src/sgsn/gprs_gmm_attach.c
@@ -449,7 +449,7 @@ struct osmo_fsm gmm_attach_req_fsm = {
static __attribute__((constructor)) void gprs_gmm_fsm_init(void)
{
- osmo_fsm_register(&gmm_attach_req_fsm);
+ OSMO_ASSERT(osmo_fsm_register(&gmm_attach_req_fsm) == 0);
}
void gmm_att_req_free(struct sgsn_mm_ctx *mm) {
diff --git a/src/sgsn/gprs_gmm_fsm.c b/src/sgsn/gprs_gmm_fsm.c
index fac06f27..94ecb50e 100644
--- a/src/sgsn/gprs_gmm_fsm.c
+++ b/src/sgsn/gprs_gmm_fsm.c
@@ -183,5 +183,5 @@ struct osmo_fsm gmm_fsm = {
static __attribute__((constructor)) void gmm_fsm_init(void)
{
- osmo_fsm_register(&gmm_fsm);
+ OSMO_ASSERT(osmo_fsm_register(&gmm_fsm) == 0);
}
diff --git a/src/sgsn/gprs_mm_state_gb_fsm.c b/src/sgsn/gprs_mm_state_gb_fsm.c
index f6d680c5..811f0c2f 100644
--- a/src/sgsn/gprs_mm_state_gb_fsm.c
+++ b/src/sgsn/gprs_mm_state_gb_fsm.c
@@ -125,5 +125,5 @@ struct osmo_fsm mm_state_gb_fsm = {
static __attribute__((constructor)) void mm_state_gb_fsm_init(void)
{
- osmo_fsm_register(&mm_state_gb_fsm);
+ OSMO_ASSERT(osmo_fsm_register(&mm_state_gb_fsm) == 0);
}
diff --git a/src/sgsn/gprs_mm_state_iu_fsm.c b/src/sgsn/gprs_mm_state_iu_fsm.c
index ea319417..e571026c 100644
--- a/src/sgsn/gprs_mm_state_iu_fsm.c
+++ b/src/sgsn/gprs_mm_state_iu_fsm.c
@@ -146,5 +146,5 @@ struct osmo_fsm mm_state_iu_fsm = {
static __attribute__((constructor)) void mm_state_iu_fsm_init(void)
{
- osmo_fsm_register(&mm_state_iu_fsm);
+ OSMO_ASSERT(osmo_fsm_register(&mm_state_iu_fsm) == 0);
}