- irc.c: constification
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Fri, 13 Mar 2015 19:19:14 +0000 (19:19 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Fri, 13 Mar 2015 19:19:14 +0000 (19:19 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@5677 82007160-df01-0410-b94d-b575c5fd34c7

src/irc.c

index 9f82949030dbd184b3c32e166f1aaba99d0e1588..bcc799723b6edd4668537ce6b7d54f17cb182876 100644 (file)
--- a/src/irc.c
+++ b/src/irc.c
@@ -559,7 +559,7 @@ irc_timer(void)
  *
  * Return: Pointer to ChannelConf containing the channel
  */
-static struct ChannelConf *
+static const struct ChannelConf *
 get_channel(const char *channel)
 {
   node_t *node;
@@ -739,7 +739,7 @@ m_ping(char *parv[], unsigned int parc, const char *msg, const struct UserInfo *
 static void
 m_invite(char *parv[], unsigned int parc, const char *msg, const struct UserInfo *source_p)
 {
-  struct ChannelConf *channel = NULL;
+  const struct ChannelConf *channel = NULL;
 
   if (parc < 4)
     return;
@@ -765,7 +765,7 @@ m_invite(char *parv[], unsigned int parc, const char *msg, const struct UserInfo
 static void
 m_privmsg(char *parv[], unsigned int parc, const char *msg, const struct UserInfo *source_p)
 {
-  struct ChannelConf *channel = NULL;
+  const struct ChannelConf *channel = NULL;
   size_t nick_len;
 
   if (source_p == NULL)