diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-01 21:15:40 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-01 21:15:40 +0000 |
commit | f10db002a84520002e33799e9cce2549b6bcadd3 (patch) | |
tree | 69edec5d4fd47cff0de2036d08ce91d2c227656c /src | |
parent | dc8565e08f938ef7bef753fabded1ee40d852c08 (diff) |
Fix building under g++.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1293 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/os_ignore_db.c | 12 |
1 files 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) {
|