--- libaitcfg/src/aitcfg.c 2013/05/30 09:12:27 1.9 +++ 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.9 2013/05/30 09:12:27 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 @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 +Copyright 2004 - 2014 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -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);