Diff for /libaitcfg/src/queue.c between versions 1.7 and 1.8

version 1.7, 2012/04/04 13:11:49 version 1.8, 2012/07/22 21:54:47
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 254  cfg_loadAttribute(cfg_root_t * __restrict cfg, const c Line 254  cfg_loadAttribute(cfg_root_t * __restrict cfg, const c
                 if (csDefValue) {                  if (csDefValue) {
                         AIT_SET_STR(val, csDefValue);                          AIT_SET_STR(val, csDefValue);
                         ret = AIT_LEN(val);                          ret = AIT_LEN(val);
                }                } else
                         AIT_INIT_VAL(val);
                 return ret;                  return ret;
         }          }
   
Line 263  cfg_loadAttribute(cfg_root_t * __restrict cfg, const c Line 264  cfg_loadAttribute(cfg_root_t * __restrict cfg, const c
                 if (csDefValue) {                  if (csDefValue) {
                         AIT_SET_STR(val, csDefValue);                          AIT_SET_STR(val, csDefValue);
                         ret = AIT_LEN(val);                          ret = AIT_LEN(val);
                }                } else
                         AIT_INIT_VAL(val);
         } else {          } else {
                 /* copy value */                  /* copy value */
                 AIT_SET_STR(val, AIT_GET_STR(&av->cfg_val));                  AIT_SET_STR(val, AIT_GET_STR(&av->cfg_val));

Removed from v.1.7  
changed lines
  Added in v.1.8


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