- opercmd.c, opercmd.h: constification
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Fri, 26 Jun 2015 17:00:33 +0000 (17:00 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Fri, 26 Jun 2015 17:00:33 +0000 (17:00 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@6212 82007160-df01-0410-b94d-b575c5fd34c7

src/opercmd.c
src/opercmd.h

index 4fef20da3d00c6e5b7a9da4e856163ebe4c39451..95cdf929823571fa8cd2d256ed71345c4c0ed639 100644 (file)
@@ -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[] =
index 622b3a847331edaf4506d7586a24634565f8be1c..0acb4636bae7b81c0f5116b79cb9d7cb1b9b3ac6 100644 (file)
@@ -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