Diff for /libaitcfg/src/aitcfg.c between versions 1.14 and 1.15

version 1.14, 2019/12/05 14:33:35 version 1.15, 2021/11/26 01:15:03
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 - 2019Copyright 2004 - 2021
         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 173  cfgLoadConfig(const char *cfgName, cfg_root_t * __rest Line 173  cfgLoadConfig(const char *cfgName, cfg_root_t * __rest
                 cfg_SetErr(EINVAL, "Invalid parameter(s)");                  cfg_SetErr(EINVAL, "Invalid parameter(s)");
                 return -1;                  return -1;
         } else {          } else {
                   memset(cfg, 0, sizeof(cfg_root_t));
   
                 pthread_mutex_init(&cfg->rc_mtx, NULL);                  pthread_mutex_init(&cfg->rc_mtx, NULL);
   
                 TAILQ_INIT(cfg);                  TAILQ_INIT(cfg);
Line 321  cfgLoadPasswd(const char *pwdName, pwd_root_t * __rest Line 323  cfgLoadPasswd(const char *pwdName, pwd_root_t * __rest
                 cfg_SetErr(EINVAL, "Invalid parameter(s)");                  cfg_SetErr(EINVAL, "Invalid parameter(s)");
                 return -1;                  return -1;
         } else {          } else {
                   memset(pwd, 0, sizeof(pwd_root_t));
   
                 pthread_mutex_init(&pwd->pwd_mtx, NULL);                  pthread_mutex_init(&pwd->pwd_mtx, NULL);
   
                 SLIST_INIT(pwd);                  SLIST_INIT(pwd);

Removed from v.1.14  
changed lines
  Added in v.1.15


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