summaryrefslogtreecommitdiff
path: root/src/datafiles.c
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
commitd94405c316469950f02b15016b7c00e4fd1c9eb1 (patch)
tree6a5a6fdbcd7eb5cff097f18c0f3b796af98df8dd /src/datafiles.c
parent3b1274e772665e3c2bbbf0e6df38f163c22dc81e (diff)
Fix more for g++.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1173 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/datafiles.c')
-rw-r--r--src/datafiles.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/datafiles.c b/src/datafiles.c
index 3af10b1d4..a2b210700 100644
--- a/src/datafiles.c
+++ b/src/datafiles.c
@@ -88,7 +88,7 @@ static dbFILE *open_db_read(const char *service, const char *filename)
dbFILE *f;
FILE *fp;
- f = scalloc(sizeof(*f), 1);
+ f = (dbFILE *)scalloc(sizeof(*f), 1);
if (!f) {
#ifndef NOT_MAIN
log_perror("Can't read %s database %s", service, filename);
@@ -149,7 +149,7 @@ static dbFILE *open_db_write(const char *service, const char *filename,
}
#endif
- f = scalloc(sizeof(*f), 1);
+ f = (dbFILE *)scalloc(sizeof(*f), 1);
if (!f) {
#ifndef NOT_MAIN
log_perror("Can not read %s database %s", service, filename);
@@ -534,7 +534,7 @@ int read_string(char **ret, dbFILE * f)
*ret = NULL;
return 0;
}
- s = scalloc(len, 1);
+ s = (char *)scalloc(len, 1);
if (len != fread(s, 1, len, f->fp)) {
free(s);
return -1;