Check for osmo_fsm_register() error return value

Change-Id: Idda1a4050cf9d285225ae48a4ba6f48c04f9598b
changes/66/16366/1
Harald Welte 3 years ago
parent 13ebf436ac
commit 4ccd2fca84
  1. 2
      src/bankd_client_fsm.c
  2. 2
      src/rspro_client_fsm.c
  3. 2
      src/server/rspro_server.c

@ -271,5 +271,5 @@ int bankd_conn_fsm_alloc(struct bankd_client *bc)
static __attribute__((constructor)) void on_dso_load(void)
{
osmo_fsm_register(&remsim_client_bankd_fsm);
OSMO_ASSERT(osmo_fsm_register(&remsim_client_bankd_fsm) == 0);
}

@ -382,5 +382,5 @@ int server_conn_fsm_alloc(void *ctx, struct rspro_server_conn *srvc)
static __attribute__((constructor)) void on_dso_load(void)
{
osmo_fsm_register(&rspro_client_server_fsm);
OSMO_ASSERT(osmo_fsm_register(&rspro_client_server_fsm) == 0);
}

@ -491,7 +491,7 @@ struct osmo_fsm_inst *server_client_fsm_alloc(void *ctx, struct rspro_client_con
static __attribute__((constructor)) void on_dso_load(void)
{
osmo_fsm_register(&remsim_server_client_fsm);
OSMO_ASSERT(osmo_fsm_register(&remsim_server_client_fsm) == 0);
}

Loading…
Cancel
Save