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-7.2/src/getopt.c (file contents), Revision 34 by lusky, Sun Oct 2 21:05:51 2005 UTC vs.
ircd-hybrid-7.3/src/getopt.c (file contents), Revision 1029 by michael, Sun Nov 8 13:10:50 2009 UTC

# 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:

Diff Legend

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