Code

openldap plugin: use $PLUGIN_LDFLAGS
[collectd.git] / src / target_scale.c
index 3ac399c904bcbafff2a803dc06bb6ee015d0485c..74652ff81dbeeb6452f0fce8c2d01768e10d3836 100644 (file)
@@ -328,7 +328,7 @@ static int ts_config_add_data_source(ts_data_t *data, /* {{{ */
 
        /* Allocate space for the char pointers */
        new_data_sources_num = data->data_sources_num + ((size_t) ci->values_num);
-       temp = (char **) realloc (data->data_sources,
+       temp = realloc (data->data_sources,
                        new_data_sources_num * sizeof (char *));
        if (temp == NULL)
        {