From f10db002a84520002e33799e9cce2549b6bcadd3 Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Wed, 1 Oct 2008 21:15:40 +0000 Subject: [PATCH] Fix building under g++. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1293 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules/os_ignore_db.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/os_ignore_db.c b/src/modules/os_ignore_db.c index 11b25e1ad..ecdd87bf2 100644 --- a/src/modules/os_ignore_db.c +++ b/src/modules/os_ignore_db.c @@ -191,7 +191,7 @@ int backup_ignoredb(int argc, char **argv) { **************************************************************************/ void load_ignore_db(void) { - DBFile *dbptr = scalloc(1, sizeof(DBFile)); + DBFile *dbptr = (DBFile *)scalloc(1, sizeof(DBFile)); char *key, *value, *mask = NULL; int retval = 0; time_t expiry_time; @@ -232,8 +232,8 @@ void load_ignore_db(void) { if (!ign) { /* Create a fresh entry.. */ - ign = scalloc(sizeof(*ign), 1); - ign->mask = sstrdup(mask); + ign = (IgnoreData *)scalloc(sizeof(*ign), 1); + ign->mask = (char *)sstrdup(mask); ign->time = expiry_time; ign->prev = NULL; ign->next = ignore; @@ -284,7 +284,7 @@ void load_ignore_db(void) { void save_ignore_db(void) { - DBFile *dbptr = scalloc(1, sizeof(DBFile)); + DBFile *dbptr = (DBFile *)scalloc(1, sizeof(DBFile)); time_t now; IgnoreData *ign, *next; @@ -345,8 +345,8 @@ void save_ignore_db(void) { int new_open_db_read(DBFile *dbptr, char **key, char **value) { - *key = malloc(MAXKEYLEN); - *value = malloc(MAXVALLEN); + *key = (char *)malloc(MAXKEYLEN); + *value = (char *)malloc(MAXVALLEN); if (!(dbptr->fptr = fopen(dbptr->filename, "rb"))) { if (debug) {