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:
Love Hörnquist Åstrand
2005-08-11 10:44:43 +00:00
parent 78a5547f69
commit c482cd681f

View File

@@ -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);