From cea0689e80b8cdb5dd1177df34dea1eb8f268974 Mon Sep 17 00:00:00 2001 From: Douglas Freed Date: Sun, 26 Jan 2014 10:02:07 +0000 Subject: [PATCH] Fix const qualifier on raw_mask Fixes compilation warning about losing const qualifier in assignment to non-const variable (cherry picked from commit 6d9c3f50944e1da3bf3a1be6454f85d6d6f7ab37) --- src/chmode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chmode.c b/src/chmode.c index 7d8073d74..6beb28289 100644 --- a/src/chmode.c +++ b/src/chmode.c @@ -741,7 +741,8 @@ chm_ban(struct Client *source_p, struct Channel *chptr, int alevel, int parc, int *parn, const char **parv, int *errors, int dir, char c, long mode_type) { - char *mask, *raw_mask, *forward; + const char *mask, *raw_mask; + char *forward; rb_dlink_list *list; rb_dlink_node *ptr; struct Ban *banptr;