From a3143c9b6b884fe9c09475464151c7812485fcdf Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Wed, 11 Jun 2008 00:28:08 +0200 Subject: [PATCH] Some const stuff for m_set. --- include/s_newconf.h | 2 +- modules/m_set.c | 8 ++++---- src/s_newconf.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/s_newconf.h b/include/s_newconf.h index 5d8b7e91..402887e8 100644 --- a/include/s_newconf.h +++ b/include/s_newconf.h @@ -236,7 +236,7 @@ extern struct server_conf *find_server_conf(const char *name); extern void attach_server_conf(struct Client *, struct server_conf *); extern void detach_server_conf(struct Client *); -extern void set_server_conf_autoconn(struct Client *source_p, char *name, +extern void set_server_conf_autoconn(struct Client *source_p, const char *name, int newval); diff --git a/modules/m_set.c b/modules/m_set.c index dfa7a8e4..9a4bf642 100644 --- a/modules/m_set.c +++ b/modules/m_set.c @@ -65,7 +65,7 @@ struct SetStruct static void quote_adminstring(struct Client *, const char *); -static void quote_autoconn(struct Client *, char *, int); +static void quote_autoconn(struct Client *, const char *, int); static void quote_autoconnall(struct Client *, int); static void quote_floodcount(struct Client *, int); static void quote_identtimeout(struct Client *, int); @@ -73,7 +73,7 @@ static void quote_max(struct Client *, int); static void quote_operstring(struct Client *, const char *); static void quote_spamnum(struct Client *, int); static void quote_spamtime(struct Client *, int); -static void quote_splitmode(struct Client *, char *); +static void quote_splitmode(struct Client *, const char *); static void quote_splitnum(struct Client *, int); static void quote_splitusers(struct Client *, int); static void list_quote_commands(struct Client *); @@ -143,7 +143,7 @@ list_quote_commands(struct Client *source_p) /* SET AUTOCONN */ static void -quote_autoconn(struct Client *source_p, char *arg, int newval) +quote_autoconn(struct Client *source_p, const char *arg, int newval) { set_server_conf_autoconn(source_p, arg, newval); } @@ -356,7 +356,7 @@ static const char *splitmode_status[] = { /* SET SPLITMODE */ static void -quote_splitmode(struct Client *source_p, char *charval) +quote_splitmode(struct Client *source_p, const char *charval) { if(charval) { diff --git a/src/s_newconf.c b/src/s_newconf.c index fa51336a..1c3c019b 100644 --- a/src/s_newconf.c +++ b/src/s_newconf.c @@ -488,7 +488,7 @@ detach_server_conf(struct Client *client_p) } void -set_server_conf_autoconn(struct Client *source_p, char *name, int newval) +set_server_conf_autoconn(struct Client *source_p, const char *name, int newval) { struct server_conf *server_p;