summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c
index b4ff90b28..49d3897ec 100644
--- a/src/config.c
+++ b/src/config.c
@@ -1245,7 +1245,7 @@ int read_config(int reload)
if (s) {
RootNumber++;
ServicesRoots =
- realloc(ServicesRoots, sizeof(char *) * RootNumber);
+ (char **)realloc(ServicesRoots, sizeof(char *) * RootNumber);
ServicesRoots[RootNumber - 1] = sstrdup(s);
}
} while ((s = strtok(NULL, " ")));
@@ -1265,7 +1265,7 @@ int read_config(int reload)
do {
if (s) {
NumUlines++;
- Ulines = realloc(Ulines, sizeof(char *) * NumUlines);
+ Ulines = (char **)realloc(Ulines, sizeof(char *) * NumUlines);
Ulines[NumUlines - 1] = sstrdup(s);
}
} while ((s = strtok(NULL, " ")));