--- libaitcfg/src/aitcfg.c 2012/04/03 09:21:06 1.4.4.2 +++ libaitcfg/src/aitcfg.c 2012/04/03 11:51:52 1.4.4.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcfg.c,v 1.4.4.2 2012/04/03 09:21:06 misho Exp $ +* $Id: aitcfg.c,v 1.4.4.3 2012/04/03 11:51:52 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -115,9 +115,8 @@ cfgInitConfig(cfg_root_t * __restrict cfg) if (!cfg) return -1; -#ifdef HAVE_LIBPTHREAD pthread_mutex_init(&cfg->rc_mtx, NULL); -#endif + SLIST_INIT(cfg); RB_INIT(cfg); return 0; @@ -180,9 +179,7 @@ cfgUnloadConfig(cfg_root_t * __restrict cfg) cfg->rbh_root = NULL; CFG_RC_UNLOCK(cfg); -#ifdef HAVE_LIBPTHREAD pthread_mutex_destroy(&cfg->rc_mtx); -#endif } #if 0