--- libaitcfg/src/aitcfg.c 2014/01/29 23:48:34 1.10 +++ libaitcfg/src/aitcfg.c 2014/01/30 08:30:47 1.11 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcfg.c,v 1.10 2014/01/29 23:48:34 misho Exp $ +* $Id: aitcfg.c,v 1.11 2014/01/30 08:30:47 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -129,7 +129,7 @@ cfgInitConfig(cfg_root_t * __restrict cfg) pthread_mutex_init(&cfg->rc_mtx, NULL); - SLIST_INIT(cfg); + TAILQ_INIT(cfg); RB_INIT(cfg); return 0; } @@ -180,8 +180,8 @@ cfgClearConfig(cfg_root_t * __restrict cfg) return; CFG_RC_LOCK(cfg); - while ((av = SLIST_FIRST(cfg))) { - SLIST_REMOVE_HEAD(cfg, cfg_next); + while ((av = TAILQ_FIRST(cfg))) { + TAILQ_REMOVE(cfg, av, cfg_next); AIT_FREE_VAL(&av->cfg_val); AIT_FREE_VAL(&av->cfg_attr);