|
|
| version 1.7.2.2, 2012/04/05 12:21:57 | version 1.9, 2012/07/25 15:24:20 |
|---|---|
| Line 135 cfg_unsetAttribute(cfg_root_t * __restrict cfg, const | Line 135 cfg_unsetAttribute(cfg_root_t * __restrict cfg, const |
| 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); |
| free(av); | io_free(av); |
| return 1; | return 1; |
| } | } |
| Line 161 cfg_setAttribute(cfg_root_t * __restrict cfg, const ch | Line 161 cfg_setAttribute(cfg_root_t * __restrict cfg, const ch |
| /* adding new element */ | /* adding new element */ |
| section = _selectAttribute(cfg, csSec, NULL); | section = _selectAttribute(cfg, csSec, NULL); |
| av = malloc(sizeof(struct tagCfg)); | av = io_malloc(sizeof(struct tagCfg)); |
| if (!av) { | if (!av) { |
| LOGERR; | LOGERR; |
| return -1; | return -1; |
| Line 248 cfg_loadAttribute(cfg_root_t * __restrict cfg, const c | Line 248 cfg_loadAttribute(cfg_root_t * __restrict cfg, const c |
| return -1; | return -1; |
| } | } |
| AIT_INIT_VAL(val); | |
| av = _selectAttribute(cfg, csSec, csAttr); | av = _selectAttribute(cfg, csSec, csAttr); |
| if (!av) { | if (!av) { |
| /* not found item */ | /* not found item */ |