summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-29 18:27:08 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-29 18:27:08 +0000
commit6ec6f84118228d925e8af04eed33d5adf2265fef (patch)
tree56acdab8f48c9960208e93305f4f418a8718c341
parent4d45e1d9b2feecd408d1170b826a2f12a4ebea1e (diff)
- 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
-rw-r--r--include/channel.h2
-rw-r--r--src/channel.c2
-rw-r--r--src/conf.c3
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;