return REP_TYPE_INVALID;
}
-static int config_load_exclude_paths(config_t *c, const dictionary *ini)
+static int config_load_exclude_paths(config_t *c, dictionary *ini)
{
assert(c);
assert(ini);
if (n <= 0)
return 0;
- const char **keys = alloca(sizeof(char *) * n);
+ char **keys = alloca(sizeof(char *) * n);
int total = n + c->n_exclude_paths;
int n_added = 0;
- c->exclude_paths = reallocarray(c->exclude_paths, sizeof(char *), total);
+ c->exclude_paths = realloc(c->exclude_paths, sizeof(char *) * total);
if (!keys || !c->exclude_paths)
goto err_oom;
- keys = iniparser_getseckeys(ini, EXCLUDEPATHS_SECTION, keys);
+ keys = iniparser_getseckeys(ini, EXCLUDEPATHS_SECTION);
if (!keys)
goto err_oom;
return false;
}
-static bool config_load_from_dict(config_t *c, const dictionary *ini)
+static bool config_load_from_dict(config_t *c, dictionary *ini)
{
assert(c);
assert(ini);