mgcp-cli: Change osmo_mgcpc_ep_fsm name to avoid collision with old osmo-bsc

Recent commit moved mgw_endpoint_fsm from osmo-bsc.git here as
osmo_mgcpc_ep_fsm. Some API name changes were applied to avoid
collisions, but FSM was kept and it is registered during startup with
__attribute__((constructor)). As a result, with old osmo-bsc (+tests)
try to allocate its copy of mgw_endpoint_fsm, it fails because that name
is already registered.

Fixes: 538d2c53d9
Change-Id: I694ce58baa43f536b7e594b003edc891f029aa4a
This commit is contained in:
Pau Espin 2019-05-08 14:01:20 +02:00
parent f027f17dcb
commit 182ca3bad4
1 changed files with 1 additions and 1 deletions

View File

@ -862,7 +862,7 @@ static int osmo_mgcpc_ep_fsm_timer_cb(struct osmo_fsm_inst *fi)
}
static struct osmo_fsm osmo_mgcpc_ep_fsm = {
.name = "mgw-endpoint",
.name = "mgw-endp",
.states = osmo_mgcpc_ep_fsm_states,
.num_states = ARRAY_SIZE(osmo_mgcpc_ep_fsm_states),
.log_subsys = DLMGCP,