summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-02-25 21:10:08 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-02-25 21:10:08 +0000
commit0f3dcc548fc79425955f1e4611565bdf70831d34 (patch)
tree1f1532b5103d88ebb5aee1e26326b7c79abaa169
parent6e56a2b84df8b77b7119c4774d8d5fce708d71f9 (diff)
- 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
-rw-r--r--include/channel_mode.h2
-rw-r--r--modules/core/m_mode.c2
-rw-r--r--src/channel_mode.c4
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;