rename optind to optidx to avoid shadow warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15872 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -166,11 +166,11 @@ usage(int code) | ||||
| int | ||||
| main(int argc, char **argv) | ||||
| { | ||||
|     int optind = 0; | ||||
|     int optidx = 0; | ||||
|  | ||||
|     setprogname (argv[0]); | ||||
|  | ||||
|     if(getarg(args, num_args, argc, argv, &optind)) | ||||
|     if(getarg(args, num_args, argc, argv, &optidx)) | ||||
| 	usage(1); | ||||
|     if(help_flag) | ||||
| 	usage(0); | ||||
| @@ -178,8 +178,8 @@ main(int argc, char **argv) | ||||
| 	print_version(NULL); | ||||
| 	exit(0); | ||||
|     } | ||||
|     argv += optind; | ||||
|     argc -= optind; | ||||
|     argv += optidx; | ||||
|     argc -= optidx; | ||||
|     if (argc != 1) | ||||
| 	usage (1); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand