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:
Love Hörnquist Åstrand
2005-06-17 05:35:35 +00:00
parent 236628582f
commit a7e9127a62

View File

@@ -93,12 +93,12 @@ main(int argc, char **argv)
krb5_context context;
krb5_principal princ;
krb5_salt salt;
int optind;
int optidx;
char buf[1024];
krb5_enctype etype;
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)
usage(0);
@@ -108,8 +108,8 @@ main(int argc, char **argv)
return 0;
}
argc -= optind;
argv += optind;
argc -= optidx;
argv += optidx;
if (argc > 1)
usage(1);