Diff for /libaitcfg/src/aitcfg.c between versions 1.4.4.2 and 1.4.4.3

version 1.4.4.2, 2012/04/03 09:21:06 version 1.4.4.3, 2012/04/03 11:51:52
Line 115  cfgInitConfig(cfg_root_t * __restrict cfg) Line 115  cfgInitConfig(cfg_root_t * __restrict cfg)
         if (!cfg)          if (!cfg)
                 return -1;                  return -1;
   
 #ifdef HAVE_LIBPTHREAD  
         pthread_mutex_init(&cfg->rc_mtx, NULL);          pthread_mutex_init(&cfg->rc_mtx, NULL);
#endif
         SLIST_INIT(cfg);          SLIST_INIT(cfg);
         RB_INIT(cfg);          RB_INIT(cfg);
         return 0;          return 0;
Line 180  cfgUnloadConfig(cfg_root_t * __restrict cfg) Line 179  cfgUnloadConfig(cfg_root_t * __restrict cfg)
         cfg->rbh_root = NULL;          cfg->rbh_root = NULL;
         CFG_RC_UNLOCK(cfg);          CFG_RC_UNLOCK(cfg);
   
 #ifdef HAVE_LIBPTHREAD  
         pthread_mutex_destroy(&cfg->rc_mtx);          pthread_mutex_destroy(&cfg->rc_mtx);
 #endif  
 }  }
   
 #if 0  #if 0

Removed from v.1.4.4.2  
changed lines
  Added in v.1.4.4.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>