rename optind to optidx

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15476 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-06-17 04:54:40 +00:00
parent e6f9987ade
commit 8c1cb200c7

View File

@@ -619,7 +619,7 @@ main(int argc, char **argv)
krb5_context context; krb5_context context;
krb5_error_code ret; krb5_error_code ret;
krb5_config_section *tmp_cf; krb5_config_section *tmp_cf;
int optind = 0; int optidx = 0;
setprogname (argv[0]); setprogname (argv[0]);
@@ -629,7 +629,7 @@ main(int argc, char **argv)
else if (ret) else if (ret)
errx (1, "krb5_init_context failed with %d", ret); errx (1, "krb5_init_context failed with %d", ret);
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)
@@ -640,8 +640,8 @@ main(int argc, char **argv)
exit(0); exit(0);
} }
argc -= optind; argc -= optidx;
argv += optind; argv += optidx;
tmp_cf = NULL; tmp_cf = NULL;
if(argc == 0) if(argc == 0)