Diff for /libaitcfg/src/aitcfg.c between versions 1.7.6.1 and 1.8.4.1

version 1.7.6.1, 2012/09/18 08:44:19 version 1.8.4.1, 2013/01/17 13:42:10
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, 2012Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
         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 44  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF TH Line 44  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF TH
 SUCH DAMAGE.  SUCH DAMAGE.
 */  */
 #include "global.h"  #include "global.h"
 #include "aitcfg.h"  
 #include "aitpwd.h"  
   
   
 #pragma GCC visibility push(hidden)  #pragma GCC visibility push(hidden)
Line 54  int cfg_Errno; Line 52  int cfg_Errno;
 char cfg_Error[STRSIZ];  char cfg_Error[STRSIZ];
   
 inline int  inline int
   cfg_Write(FILE *f, char *fmt, ...)
   {
           int ret = 0;
           va_list lst;
   
           va_start(lst, fmt);
           ret = vfprintf(f, fmt, lst);
           va_end(lst);
   
           return ret;
   }
   
   inline int
 cfg_tree_cmp(struct tagCfg *a, struct tagCfg *b)  cfg_tree_cmp(struct tagCfg *a, struct tagCfg *b)
 {  {
         int ret;          int ret;
Line 175  cfgClearConfig(cfg_root_t * __restrict cfg) Line 186  cfgClearConfig(cfg_root_t * __restrict cfg)
                 AIT_FREE_VAL(&av->cfg_val);                  AIT_FREE_VAL(&av->cfg_val);
                 AIT_FREE_VAL(&av->cfg_attr);                  AIT_FREE_VAL(&av->cfg_attr);
                 AIT_FREE_VAL(&av->cfg_sec);                  AIT_FREE_VAL(&av->cfg_sec);
                io_free(av);                e_free(av);
         }          }
         cfg->rbh_root = NULL;          cfg->rbh_root = NULL;
         CFG_RC_UNLOCK(cfg);          CFG_RC_UNLOCK(cfg);
Line 304  cfgClearPasswd(pwd_root_t * __restrict pwd) Line 315  cfgClearPasswd(pwd_root_t * __restrict pwd)
                 AIT_FREE_VAL(&p->usr_realm);                  AIT_FREE_VAL(&p->usr_realm);
                 AIT_FREE_VAL(&p->usr_home);                  AIT_FREE_VAL(&p->usr_home);
                 AIT_FREE_VAL(&p->usr_shell);                  AIT_FREE_VAL(&p->usr_shell);
                io_free(p);                e_free(p);
         }          }
         pwd->rbh_root = NULL;          pwd->rbh_root = NULL;
         PWD_UNLOCK(pwd);          PWD_UNLOCK(pwd);

Removed from v.1.7.6.1  
changed lines
  Added in v.1.8.4.1


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