--- libaitcfg/src/aitcfg.c 2012/09/19 15:22:32 1.8 +++ libaitcfg/src/aitcfg.c 2013/05/26 20:11:53 1.8.4.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcfg.c,v 1.8 2012/09/19 15:22:32 misho Exp $ +* $Id: aitcfg.c,v 1.8.4.2 2013/05/26 20:11:53 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 +Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -44,8 +44,6 @@ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF TH SUCH DAMAGE. */ #include "global.h" -#include "aitcfg.h" -#include "aitpwd.h" #pragma GCC visibility push(hidden) @@ -53,7 +51,7 @@ SUCH DAMAGE. int cfg_Errno; char cfg_Error[STRSIZ]; -inline int +int cfg_Write(FILE *f, char *fmt, ...) { int ret = 0; @@ -66,7 +64,7 @@ cfg_Write(FILE *f, char *fmt, ...) return ret; } -inline int +int cfg_tree_cmp(struct tagCfg *a, struct tagCfg *b) { int ret; @@ -90,21 +88,21 @@ RB_GENERATE(tagRC, tagCfg, cfg_node, cfg_tree_cmp); // cfg_GetErrno() Get error code of last operation -inline int +int cfg_GetErrno() { return cfg_Errno; } // cfg_GetError() Get error text of last operation -inline const char * +const char * cfg_GetError() { return cfg_Error; } // cfg_SetErr() Set error to variables for internal use!!! -inline void +void cfg_SetErr(int eno, char *estr, ...) { va_list lst; @@ -188,7 +186,7 @@ cfgClearConfig(cfg_root_t * __restrict cfg) AIT_FREE_VAL(&av->cfg_val); AIT_FREE_VAL(&av->cfg_attr); AIT_FREE_VAL(&av->cfg_sec); - io_free(av); + e_free(av); } cfg->rbh_root = NULL; CFG_RC_UNLOCK(cfg); @@ -317,7 +315,7 @@ cfgClearPasswd(pwd_root_t * __restrict pwd) AIT_FREE_VAL(&p->usr_realm); AIT_FREE_VAL(&p->usr_home); AIT_FREE_VAL(&p->usr_shell); - io_free(p); + e_free(p); } pwd->rbh_root = NULL; PWD_UNLOCK(pwd);