rename optind to optidx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15488 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -93,12 +93,12 @@ main(int argc, char **argv)
|
|||||||
krb5_context context;
|
krb5_context context;
|
||||||
krb5_principal princ;
|
krb5_principal princ;
|
||||||
krb5_salt salt;
|
krb5_salt salt;
|
||||||
int optind;
|
int optidx;
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
krb5_enctype etype;
|
krb5_enctype etype;
|
||||||
krb5_error_code ret;
|
krb5_error_code ret;
|
||||||
|
|
||||||
optind = krb5_program_setup(&context, argc, argv, args, num_args, NULL);
|
optidx = krb5_program_setup(&context, argc, argv, args, num_args, NULL);
|
||||||
|
|
||||||
if(help)
|
if(help)
|
||||||
usage(0);
|
usage(0);
|
||||||
@@ -108,8 +108,8 @@ main(int argc, char **argv)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
argc -= optind;
|
argc -= optidx;
|
||||||
argv += optind;
|
argv += optidx;
|
||||||
|
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
usage(1);
|
usage(1);
|
||||||
|
Reference in New Issue
Block a user