diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:08 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:08 +0000 |
commit | e3adfa41917b7708b1e9b498b4c3a8fd46fd1530 (patch) | |
tree | 45945d034ba7061fec26d764cfb63376c62e5822 /src | |
parent | 640b5fb2e1f56fcf6869ff289ed33479c3d5ebdb (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 'src')
-rw-r--r-- | src/actions.c | 2 | ||||
-rw-r--r-- | src/botserv.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/actions.c b/src/actions.c index 46617643b..972b343fc 100644 --- a/src/actions.c +++ b/src/actions.c @@ -49,7 +49,7 @@ void bad_password(User * u) * @param reason for the kill * @return void */ -void kill_user(char *source, char *user, char *reason) +void kill_user(const char *source, const char *user, const char *reason) { char buf[BUFSIZE]; diff --git a/src/botserv.c b/src/botserv.c index ed5af558d..5c23766ef 100644 --- a/src/botserv.c +++ b/src/botserv.c @@ -269,7 +269,7 @@ void botchanmsgs(User * u, ChannelInfo * ci, char *buf) nbuf + strlen(nbuf) - len)))) { mustkick = 1; } else { - char *wordbuf = scalloc(len + 3, 1); + char *wordbuf = (char *)scalloc(len + 3, 1); wordbuf[0] = ' '; wordbuf[len + 1] = ' '; @@ -296,7 +296,7 @@ void botchanmsgs(User * u, ChannelInfo * ci, char *buf) && (!strnicmp(nbuf, bw->word, len)))) { mustkick = 1; } else { - char *wordbuf = scalloc(len + 2, 1); + char *wordbuf = (char *)scalloc(len + 2, 1); memcpy(wordbuf + 1, bw->word, len); wordbuf[0] = ' '; @@ -323,7 +323,7 @@ void botchanmsgs(User * u, ChannelInfo * ci, char *buf) len)))) { mustkick = 1; } else { - char *wordbuf = scalloc(len + 2, 1); + char *wordbuf = (char *)scalloc(len + 2, 1); memcpy(wordbuf, bw->word, len); wordbuf[len] = ' '; @@ -599,7 +599,7 @@ BotInfo *makebot(char *nick) return NULL; } - bi = scalloc(sizeof(BotInfo), 1); + bi = (BotInfo *)scalloc(sizeof(BotInfo), 1); bi->nick = sstrdup(nick); bi->lastmsg = time(NULL); insert_bot(bi); @@ -698,7 +698,7 @@ static BanData *get_ban_data(Channel * c, User * u) } /* If we fall here it is that we haven't found the record */ - bd = scalloc(sizeof(BanData), 1); + bd = (BanData *)scalloc(sizeof(BanData), 1); bd->mask = sstrdup(mask); bd->last_use = now; @@ -741,7 +741,7 @@ static UserData *get_user_data(Channel * c, User * u) return user->ud; } else { - user->ud = scalloc(sizeof(UserData), 1); + user->ud = (UserData *)scalloc(sizeof(UserData), 1); user->ud->last_use = time(NULL); return user->ud; } |