rename optind to optidx

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15765 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-07-26 21:32:07 +00:00
parent 268bcef1fe
commit 62327ac49e

View File

@@ -269,11 +269,11 @@ usage(int code)
int
main(int argc, char **argv)
{
int optind = 0;
int optidx = 0;
setprogname (argv[0]);
initialize_asn1_error_table ();
if(getarg(args, num_args, argc, argv, &optind))
if(getarg(args, num_args, argc, argv, &optidx))
usage(1);
if(help_flag)
usage(0);
@@ -281,8 +281,8 @@ main(int argc, char **argv)
print_version(NULL);
exit(0);
}
argv += optind;
argc -= optind;
argv += optidx;
argc -= optidx;
if (argc != 1)
usage (1);
return doit (argv[0]);