Diff for /libaitcfg/src/aitcfg.c between versions 1.10 and 1.11

version 1.10, 2014/01/29 23:48:34 version 1.11, 2014/01/30 08:30:47
Line 129  cfgInitConfig(cfg_root_t * __restrict cfg) Line 129  cfgInitConfig(cfg_root_t * __restrict cfg)
   
         pthread_mutex_init(&cfg->rc_mtx, NULL);          pthread_mutex_init(&cfg->rc_mtx, NULL);
   
        SLIST_INIT(cfg);        TAILQ_INIT(cfg);
         RB_INIT(cfg);          RB_INIT(cfg);
         return 0;          return 0;
 }  }
Line 180  cfgClearConfig(cfg_root_t * __restrict cfg) Line 180  cfgClearConfig(cfg_root_t * __restrict cfg)
                 return;                  return;
   
         CFG_RC_LOCK(cfg);          CFG_RC_LOCK(cfg);
        while ((av = SLIST_FIRST(cfg))) {        while ((av = TAILQ_FIRST(cfg))) {
                SLIST_REMOVE_HEAD(cfg, cfg_next);                TAILQ_REMOVE(cfg, av, cfg_next);
   
                 AIT_FREE_VAL(&av->cfg_val);                  AIT_FREE_VAL(&av->cfg_val);
                 AIT_FREE_VAL(&av->cfg_attr);                  AIT_FREE_VAL(&av->cfg_attr);

Removed from v.1.10  
changed lines
  Added in v.1.11


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