diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:08 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:08 +0000 |
commit | 3b1274e772665e3c2bbbf0e6df38f163c22dc81e (patch) | |
tree | 84f1fb93400a396bf36536fee0a728bc6a676e2a /src/config.c | |
parent | e3adfa41917b7708b1e9b498b4c3a8fd46fd1530 (diff) |
More g++ fixes.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1172 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 4 |
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, " "))); |