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

version 1.9, 2013/05/30 09:12:27 version 1.11, 2014/01/30 08:30:47
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013Copyright 2004 - 2014
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
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.9  
changed lines
  Added in v.1.11


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