ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/channel.c
(Generate patch)

Comparing ircd-hybrid/branches/8.2.x/src/channel.c (file contents):
Revision 7792 by michael, Mon Oct 17 19:22:28 2016 UTC vs.
Revision 7796 by michael, Tue Oct 18 17:26:37 2016 UTC

# Line 152 | Line 152 | remove_user_from_channel(struct Membersh
152   */
153   static void
154   channel_send_members(struct Client *client_p, const struct Channel *chptr,
155 <                     char *modebuf, char *parabuf)
155 >                     const char *modebuf, const char *parabuf)
156   {
157    char buf[IRCD_BUFSIZE] = "";
158    dlink_node *node;
# Line 1166 | Line 1166 | channel_part_one_client(struct Client *c
1166   void
1167   channel_do_part(struct Client *client_p, char *channel, const char *reason)
1168   {
1169 <  char *p = NULL, *name = NULL;
1169 >  char *p = NULL;
1170    char buf[KICKLEN + 1] = "";
1171  
1172    assert(IsClient(client_p));
# Line 1174 | Line 1174 | channel_do_part(struct Client *client_p,
1174    if (!EmptyString(reason))
1175      strlcpy(buf, reason, sizeof(buf));
1176  
1177 <  for (name = strtok_r(channel, ",", &p); name;
1178 <       name = strtok_r(NULL,    ",", &p))
1177 >  for (const char *name = strtok_r(channel, ",", &p); name;
1178 >                   name = strtok_r(NULL,    ",", &p))
1179      channel_part_one_client(client_p, name, buf);
1180   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines