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

Comparing ircd-hybrid/trunk/src/irc_string.c (file contents):
Revision 6546 by michael, Wed Sep 16 19:55:55 2015 UTC vs.
Revision 7668 by michael, Wed Jul 20 17:09:49 2016 UTC

# Line 1 | Line 1
1   /*
2   *  ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3   *
4 < *  Copyright (c) 1997-2015 ircd-hybrid development team
4 > *  Copyright (c) 1997-2016 ircd-hybrid development team
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 116 | Line 116 | strtok_r(char *str, const char *fs, char
116   * \param size Maximum number of elements to put in \a vector.
117   * \return Number of elements written to \a vector.
118   */
119 < int
120 < token_vector(char *names, char token, char *vector[], int size)
119 > unsigned int
120 > token_vector(char *names, char token, char *vector[], unsigned int size)
121   {
122 <  int count = 0;
122 >  unsigned int count = 0;
123    char *start = names;
124  char *end = NULL;
124  
125    assert(names);
126    assert(vector);
# Line 129 | Line 128 | token_vector(char *names, char token, ch
128  
129    vector[count++] = start;
130  
131 <  for (end = strchr(start, token); end;
132 <       end = strchr(start, token))
131 >  for (char *end = strchr(start, token); end;
132 >             end = strchr(start, token))
133    {
134      *end++ = '\0';
135      start = end;

Comparing ircd-hybrid/trunk/src/irc_string.c (property svn:keywords):
Revision 6546 by michael, Wed Sep 16 19:55:55 2015 UTC vs.
Revision 7668 by michael, Wed Jul 20 17:09:49 2016 UTC

# Line 1 | Line 1
1 < Id Revision
1 > Id

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)