diff options
Diffstat (limited to 'src/fsm.c')
-rw-r--r-- | src/fsm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -87,7 +87,7 @@ * */ -static LLIST_HEAD(g_fsms); +LLIST_HEAD(osmo_g_fsms); static bool fsm_log_addr = true; /*! \brief specify if FSM instance addresses should be logged or not @@ -106,7 +106,7 @@ void osmo_fsm_log_addr(bool log_addr) struct osmo_fsm *osmo_fsm_find_by_name(const char *name) { struct osmo_fsm *fsm; - llist_for_each_entry(fsm, &g_fsms, list) { + llist_for_each_entry(fsm, &osmo_g_fsms, list) { if (!strcmp(name, fsm->name)) return fsm; } @@ -125,7 +125,7 @@ int osmo_fsm_register(struct osmo_fsm *fsm) { if (osmo_fsm_find_by_name(fsm->name)) return -EEXIST; - llist_add_tail(&fsm->list, &g_fsms); + llist_add_tail(&fsm->list, &osmo_g_fsms); INIT_LLIST_HEAD(&fsm->instances); return 0; |