From: michael Date: Fri, 26 Jun 2015 17:00:33 +0000 (+0000) Subject: - opercmd.c, opercmd.h: constification X-Git-Tag: 1.1.0beta1~12 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=3a305d83ccad2f2ae14bc56df332f5b3a32d12f6;p=hopm.git - opercmd.c, opercmd.h: constification git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@6212 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/src/opercmd.c b/src/opercmd.c index 4fef20d..95cdf92 100644 --- a/src/opercmd.c +++ b/src/opercmd.c @@ -115,7 +115,7 @@ cmd_protocols(char *param, const struct ChannelConf *target) * Pointer to new Command */ static struct Command * -command_create(const struct OperCommandHash *tab, char *param, const char *irc_nick, +command_create(const struct OperCommandHash *tab, const char *param, const char *irc_nick, const struct ChannelConf *target) { struct Command *command = xcalloc(sizeof(*command)); @@ -165,7 +165,7 @@ command_free(struct Command *command) * */ void -command_parse(char *command, const struct ChannelConf *target, const char *source_p) +command_parse(const char *command, const struct ChannelConf *target, const char *source_p) { char *param; /* Parsed parameters */ static const struct OperCommandHash COMMAND_TABLE[] = diff --git a/src/opercmd.h b/src/opercmd.h index 622b3a8..0acb463 100644 --- a/src/opercmd.h +++ b/src/opercmd.h @@ -56,5 +56,5 @@ struct Command extern void command_init(void); extern void command_userhost(const char *); extern void command_timer(void); -extern void command_parse(char *, const struct ChannelConf *, const char *); +extern void command_parse(const char *, const struct ChannelConf *, const char *); #endif