switch (libopm_config_gettype(i))
{
case OPM_TYPE_STRINGLIST:
- list = (OPM_LIST_T *)config->vars[i];
+ list = config->vars[i];
LIST_FOREACH_SAFE(p, next, list->head)
{
switch (libopm_config_gettype(key))
{
case OPM_TYPE_STRING:
- if ((char *) config->vars[key])
+ if (config->vars[key])
MyFree(config->vars[key]);
config->vars[key] = libopm_xstrdup(value);
case OPM_TYPE_STRINGLIST:
node = libopm_node_create(libopm_xstrdup(value));
- libopm_list_add((OPM_LIST_T *)config->vars[key], node);
+ libopm_list_add(config->vars[key], node);
break;
default:
{
LIST_FOREACH(node2, scan->connections->head)
{
- conn = (OPM_CONNECTION_T *) node2->data;
+ conn = node2->data;
conn->state = OPM_STATE_CLOSED;
}
}