/[svn]/hopm/branches/1.0.x/src/libopm/src/config.c
ViewVC logotype

Diff of /hopm/branches/1.0.x/src/libopm/src/config.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5910 by michael, Mon Mar 16 18:51:49 2015 UTC revision 5911 by michael, Tue May 5 18:32:36 2015 UTC
# Line 132  libopm_config_free(OPM_CONFIG_T *config) Line 132  libopm_config_free(OPM_CONFIG_T *config)
132      switch (libopm_config_gettype(i))      switch (libopm_config_gettype(i))
133      {      {
134        case OPM_TYPE_STRINGLIST:        case OPM_TYPE_STRINGLIST:
135          list = (OPM_LIST_T *)config->vars[i];          list = config->vars[i];
136    
137          LIST_FOREACH_SAFE(p, next, list->head)          LIST_FOREACH_SAFE(p, next, list->head)
138          {          {
# Line 180  libopm_config_set(OPM_CONFIG_T *config, Line 180  libopm_config_set(OPM_CONFIG_T *config,
180    switch (libopm_config_gettype(key))    switch (libopm_config_gettype(key))
181    {    {
182      case OPM_TYPE_STRING:      case OPM_TYPE_STRING:
183        if ((char *) config->vars[key])        if (config->vars[key])
184          MyFree(config->vars[key]);          MyFree(config->vars[key]);
185    
186        config->vars[key] = libopm_xstrdup(value);        config->vars[key] = libopm_xstrdup(value);
# Line 198  libopm_config_set(OPM_CONFIG_T *config, Line 198  libopm_config_set(OPM_CONFIG_T *config,
198    
199      case OPM_TYPE_STRINGLIST:      case OPM_TYPE_STRINGLIST:
200        node = libopm_node_create(libopm_xstrdup(value));        node = libopm_node_create(libopm_xstrdup(value));
201        libopm_list_add((OPM_LIST_T *)config->vars[key], node);        libopm_list_add(config->vars[key], node);
202        break;        break;
203    
204      default:      default:

Legend:
Removed from v.5910  
changed lines
  Added in v.5911

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28