From: michael Date: Fri, 13 Mar 2015 19:19:14 +0000 (+0000) Subject: - irc.c: constification X-Git-Tag: 1.0.4~18 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=54007c263f76ee305768e637d79f0f1554585ef8;p=hopm.git - irc.c: constification git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@5677 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/src/irc.c b/src/irc.c index 9f82949..bcc7997 100644 --- 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)