diff options
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; } |