Rename optind to optidx to avoid shadowing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15930 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -109,13 +109,13 @@ doit (const char *nodename, const char *servname)
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
int optind = 0;
|
||||
int optidx = 0;
|
||||
int i;
|
||||
|
||||
setprogname (argv[0]);
|
||||
|
||||
if (getarg (args, sizeof(args) / sizeof(args[0]), argc, argv,
|
||||
&optind))
|
||||
&optidx))
|
||||
usage (1);
|
||||
|
||||
if (help_flag)
|
||||
@@ -126,8 +126,8 @@ main(int argc, char **argv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
argc -= optidx;
|
||||
argv += optidx;
|
||||
|
||||
if (argc % 2 != 0)
|
||||
usage (1);
|
||||
|
Reference in New Issue
Block a user