rename optind to optidx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15466 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -66,11 +66,11 @@ main(int argc, char **argv)
|
|||||||
int types[] = {KRB5_KRBHST_KDC, KRB5_KRBHST_ADMIN, KRB5_KRBHST_CHANGEPW,
|
int types[] = {KRB5_KRBHST_KDC, KRB5_KRBHST_ADMIN, KRB5_KRBHST_CHANGEPW,
|
||||||
KRB5_KRBHST_KRB524};
|
KRB5_KRBHST_KRB524};
|
||||||
const char *type_str[] = {"kdc", "admin", "changepw", "krb524"};
|
const char *type_str[] = {"kdc", "admin", "changepw", "krb524"};
|
||||||
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)
|
||||||
@@ -81,8 +81,8 @@ main(int argc, char **argv)
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
argc -= optind;
|
argc -= optidx;
|
||||||
argv += optind;
|
argv += optidx;
|
||||||
|
|
||||||
krb5_init_context (&context);
|
krb5_init_context (&context);
|
||||||
for(i = 0; i < argc; i++) {
|
for(i = 0; i < argc; i++) {
|
||||||
|
Reference in New Issue
Block a user