diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:09 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:09 +0000 |
commit | d239984fb4f726d03f0392f84234e18f0344f8a3 (patch) | |
tree | b7ff6b59711cf442ab6d07e8e9dee482cc6ec1df /src/process.c | |
parent | 3e6f3f6b54a0f5810f19eae853893ff8d8a9eb9b (diff) |
Various g++ fixes. Compiles, doesn't link.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1180 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/process.c')
-rw-r--r-- | src/process.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/process.c b/src/process.c index 627c94f04..b6948e80f 100644 --- a/src/process.c +++ b/src/process.c @@ -74,7 +74,7 @@ void add_ignore(const char *nick, time_t delta) /* Create new entry.. */
} else { - ign = scalloc(sizeof(*ign), 1); + ign = (IgnoreData *)scalloc(sizeof(*ign), 1); ign->mask = mask; ign->time = now + delta; ign->prev = NULL; @@ -263,12 +263,12 @@ int split_buf(char *buf, char ***argv, int colon_special) int argc; char *s; - *argv = scalloc(sizeof(char *) * argvsize, 1); + *argv = (char **)scalloc(sizeof(char *) * argvsize, 1); argc = 0; while (*buf) { if (argc == argvsize) { argvsize += 8; - *argv = srealloc(*argv, sizeof(char *) * argvsize); + *argv = (char **)srealloc(*argv, sizeof(char *) * argvsize); } if (*buf == ':') { (*argv)[argc++] = buf + 1; |