ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.1.x/src/libopm/src/config.c
(Generate patch)

Comparing hopm/trunk/src/libopm/src/config.c (file contents):
Revision 5711 by michael, Mon Mar 16 18:52:15 2015 UTC vs.
Revision 5912 by michael, Tue May 5 18:33:11 2015 UTC

# Line 132 | Line 132 | libopm_config_free(OPM_CONFIG_T *config)
132      switch (libopm_config_gettype(i))
133      {
134        case OPM_TYPE_STRINGLIST:
135 <        list = (OPM_LIST_T *)config->vars[i];
135 >        list = config->vars[i];
136  
137          LIST_FOREACH_SAFE(p, next, list->head)
138          {
# Line 180 | Line 180 | libopm_config_set(OPM_CONFIG_T *config,
180    switch (libopm_config_gettype(key))
181    {
182      case OPM_TYPE_STRING:
183 <      if ((char *) config->vars[key])
183 >      if (config->vars[key])
184          MyFree(config->vars[key]);
185  
186        config->vars[key] = libopm_xstrdup(value);
# Line 198 | Line 198 | libopm_config_set(OPM_CONFIG_T *config,
198  
199      case OPM_TYPE_STRINGLIST:
200        node = libopm_node_create(libopm_xstrdup(value));
201 <      libopm_list_add((OPM_LIST_T *)config->vars[key], node);
201 >      libopm_list_add(config->vars[key], node);
202        break;
203  
204      default:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines