From 6ec6f84118228d925e8af04eed33d5adf2265fef Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 29 May 2013 18:27:08 +0000 Subject: - get_member_status(), valid_wildcard(): constification git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2132 82007160-df01-0410-b94d-b575c5fd34c7 --- include/channel.h | 2 +- src/channel.c | 2 +- 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; diff --git a/src/conf.c b/src/conf.c index 2704e52..6f2a05e 100644 --- a/src/conf.c +++ b/src/conf.c @@ -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; -- cgit