Check for osmo_fsm_register() error return value

Change-Id: I4cce3d6798fe3184a3085d114b749b4645620978
changes/82/16382/1
Harald Welte 3 years ago
parent 22d0ba860d
commit 34a8cc33a2
  1. 2
      src/libmsc/mncc_call.c
  2. 2
      src/libmsc/msc_ho.c

@ -60,7 +60,7 @@ struct gsm_network *gsmnet = NULL;
void mncc_call_fsm_init(struct gsm_network *net)
{
osmo_fsm_register(&mncc_call_fsm);
OSMO_ASSERT(osmo_fsm_register(&mncc_call_fsm) == 0);
gsmnet = net;
}

@ -62,7 +62,7 @@ static const struct osmo_tdef_state_timeout msc_ho_fsm_timeouts[32] = {
static __attribute__((constructor)) void msc_ho_fsm_init()
{
osmo_fsm_register(&msc_ho_fsm);
OSMO_ASSERT(osmo_fsm_register(&msc_ho_fsm) == 0);
}
void msc_ho_down_required_reject(struct msc_a *msc_a, enum gsm0808_cause cause)

Loading…
Cancel
Save