summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:08 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:08 +0000
commite3adfa41917b7708b1e9b498b4c3a8fd46fd1530 (patch)
tree45945d034ba7061fec26d764cfb63376c62e5822 /lang
parent640b5fb2e1f56fcf6869ff289ed33479c3d5ebdb (diff)
Make a bunch of stuff build under g++.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1171 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'lang')
-rw-r--r--lang/langcomp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lang/langcomp.c b/lang/langcomp.c
index bd9bf2646..d9c40f8fb 100644
--- a/lang/langcomp.c
+++ b/lang/langcomp.c
@@ -76,11 +76,11 @@ int read_index_file()
}
while (fgets(buf, sizeof(buf), f))
numstrings++;
- if (!(stringnames = calloc(sizeof(char *), numstrings))) {
+ if (!(stringnames = (char **)calloc(sizeof(char *), numstrings))) {
perror("calloc(stringnames)");
return -1;
}
- if (!(strings = calloc(sizeof(char *), numstrings))) {
+ if (!(strings = (char **)calloc(sizeof(char *), numstrings))) {
perror("calloc(strings)");
return -1;
}
@@ -215,7 +215,7 @@ int main(int ac, char **av)
line++;
i = strings[curstring] ? strlen(strings[curstring]) : 0;
if (!(strings[curstring] =
- realloc(strings[curstring], i+strlen(line)+2))) {
+ (char *)realloc(strings[curstring], i+strlen(line)+2))) {
fprintf(stderr, "%s:%d: Out of memory!\n",filename,linenum);
return 2;
}
@@ -234,7 +234,7 @@ int main(int ac, char **av)
retval = 1;
maxerr--;
} else {
- if (!(strings[curstring] = malloc(1))) {
+ if (!(strings[curstring] = (char *)malloc(1))) {
fprintf(stderr, "%s:%d: Out of memory!\n",filename,linenum);
return 2;
}