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

Comparing ircd-hybrid/src/getopt.c (file contents):
Revision 30 by adx, Sun Oct 2 20:03:27 2005 UTC vs.
Revision 1155 by michael, Tue Aug 9 20:27:45 2011 UTC

# Line 19 | Line 19
19   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
20   *  USA
21   *
22 < *  $Id: getopt.c,v 7.17 2003/07/25 23:49:20 michael Exp $
22 > *  $Id$
23   */
24  
25   #include "stdinc.h"
# Line 78 | Line 78 | parseargs(int *argc, char ***argv, struc
78                      }
79                    
80                    *((int *)opts[i].argloc) = atoi((*argv)[1]);
81 +            (*argc)--;
82 +            (*argv)++;
83                    break;
84                  case STRING:
85                    if (*argc < 2)
# Line 89 | Line 91 | parseargs(int *argc, char ***argv, struc
91                    
92                    *((char**)opts[i].argloc) = malloc(strlen((*argv)[1]) + 1);
93                    strcpy(*((char**)opts[i].argloc), (*argv)[1]);
94 +            (*argc)--;
95 +            (*argv)++;
96                    break;
97  
98                  case USAGE:

Comparing ircd-hybrid/src/getopt.c (property svn:keywords):
Revision 30 by adx, Sun Oct 2 20:03:27 2005 UTC vs.
Revision 1155 by michael, Tue Aug 9 20:27:45 2011 UTC

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

Diff Legend

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