diff options
-rw-r--r-- | include/channel.h | 2 | ||||
-rw-r--r-- | src/channel.c | 2 | ||||
-rw-r--r-- | src/conf.c | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/include/channel.h b/include/channel.h index 8780dbe..089a33e 100644 --- a/include/channel.h +++ b/include/channel.h @@ -136,7 +136,7 @@ extern void free_channel_list(dlink_list *); extern void destroy_channel(struct Channel *); extern void set_channel_topic(struct Channel *, const char *, const char *, time_t, int); -extern const char *get_member_status(const struct Membership *, int); +extern const char *get_member_status(const struct Membership *, const int); extern struct Channel *make_channel(const char *); extern struct Membership *find_channel_link(struct Client *, struct Channel *); diff --git a/src/channel.c b/src/channel.c index d7f524b..5661958 100644 --- a/src/channel.c +++ b/src/channel.c @@ -544,7 +544,7 @@ del_invite(struct Channel *chptr, struct Client *who) * (like in get_client_name) */ const char * -get_member_status(const struct Membership *ms, int combine) +get_member_status(const struct Membership *ms, const int combine) { static char buffer[4]; char *p = buffer; @@ -1796,7 +1796,6 @@ valid_wild_card_simple(const char *data) int valid_wild_card(struct Client *source_p, int warn, int count, ...) { - char *p; char tmpch; int nonwild = 0; va_list args; @@ -1817,7 +1816,7 @@ valid_wild_card(struct Client *source_p, int warn, int count, ...) while (count--) { - p = va_arg(args, char *); + const char *p = va_arg(args, const char *); if (p == NULL) continue; |