diff options
-rw-r--r-- | include/channel_mode.h | 2 | ||||
-rw-r--r-- | modules/core/m_mode.c | 2 | ||||
-rw-r--r-- | 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; |