rename optind to optidx to avoid shadowing
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15415 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -71,11 +71,11 @@ main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
struct dns_reply *r;
|
struct dns_reply *r;
|
||||||
struct resource_record *rr;
|
struct resource_record *rr;
|
||||||
int optind = 0;
|
int optidx = 0;
|
||||||
|
|
||||||
setprogname (argv[0]);
|
setprogname (argv[0]);
|
||||||
|
|
||||||
if(getarg(args, sizeof(args) / sizeof(args[0]), argc, argv, &optind))
|
if(getarg(args, sizeof(args) / sizeof(args[0]), argc, argv, &optidx))
|
||||||
usage(1);
|
usage(1);
|
||||||
|
|
||||||
if (help_flag)
|
if (help_flag)
|
||||||
@@ -86,8 +86,8 @@ main(int argc, char **argv)
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
argc -= optind;
|
argc -= optidx;
|
||||||
argv += optind;
|
argv += optidx;
|
||||||
|
|
||||||
if (argc != 2)
|
if (argc != 2)
|
||||||
usage(1);
|
usage(1);
|
||||||
|
Reference in New Issue
Block a user