From 0f3dcc548fc79425955f1e4611565bdf70831d34 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 25 Feb 2014 21:10:08 +0000 Subject: - ms_bmask(): made mode_type an unsigned int type git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3043 82007160-df01-0410-b94d-b575c5fd34c7 --- include/channel_mode.h | 2 +- modules/core/m_mode.c | 2 +- src/channel_mode.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/channel_mode.h b/include/channel_mode.h index fda0bdb..76136ec 100644 --- a/include/channel_mode.h +++ b/include/channel_mode.h @@ -117,7 +117,7 @@ struct mode_letter extern const struct mode_letter chan_modes[]; -extern int add_id(struct Client *, struct Channel *, char *, int); +extern int add_id(struct Client *, struct Channel *, char *, unsigned int); extern void set_channel_mode(struct Client *, struct Client *, struct Channel *, struct Membership *, int, char **); extern void clear_ban_cache(struct Channel *); diff --git a/modules/core/m_mode.c b/modules/core/m_mode.c index a4da839..608226d 100644 --- a/modules/core/m_mode.c +++ b/modules/core/m_mode.c @@ -177,7 +177,7 @@ ms_bmask(struct Client *client_p, struct Client *source_p, int parc, char *parv[ char banbuf[IRCD_BUFSIZE]; struct Channel *chptr; char *s, *t, *mbuf, *pbuf; - long mode_type; + unsigned int mode_type = 0; int mlen, tlen; int modecount = 0; diff --git a/src/channel_mode.c b/src/channel_mode.c index c50fda8..49e0a64 100644 --- a/src/channel_mode.c +++ b/src/channel_mode.c @@ -101,7 +101,7 @@ check_string(char *s) */ int -add_id(struct Client *client_p, struct Channel *chptr, char *banid, int type) +add_id(struct Client *client_p, struct Channel *chptr, char *banid, unsigned int type) { dlink_list *list = NULL; dlink_node *ban = NULL; @@ -210,7 +210,7 @@ add_id(struct Client *client_p, struct Channel *chptr, char *banid, int type) * side effects - */ static int -del_id(struct Channel *chptr, char *banid, int type) +del_id(struct Channel *chptr, char *banid, unsigned int type) { dlink_list *list; dlink_node *ban; -- cgit