rename optind to optidx, remove shadowed variables
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15442 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -139,7 +139,6 @@ loop (unsigned char *buf, size_t len, int indent)
|
|||||||
}
|
}
|
||||||
case UT_OctetString : {
|
case UT_OctetString : {
|
||||||
heim_octet_string str;
|
heim_octet_string str;
|
||||||
int i;
|
|
||||||
unsigned char *uc;
|
unsigned char *uc;
|
||||||
|
|
||||||
ret = der_get_octet_string (buf, length, &str, NULL);
|
ret = der_get_octet_string (buf, length, &str, NULL);
|
||||||
@@ -173,7 +172,6 @@ loop (unsigned char *buf, size_t len, int indent)
|
|||||||
}
|
}
|
||||||
case UT_OID: {
|
case UT_OID: {
|
||||||
heim_oid o;
|
heim_oid o;
|
||||||
int i;
|
|
||||||
|
|
||||||
ret = der_get_oid(buf, length, &o, NULL);
|
ret = der_get_oid(buf, length, &o, NULL);
|
||||||
if (ret)
|
if (ret)
|
||||||
@@ -251,11 +249,11 @@ usage(int code)
|
|||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int optind = 0;
|
int optidx = 0;
|
||||||
|
|
||||||
setprogname (argv[0]);
|
setprogname (argv[0]);
|
||||||
initialize_asn1_error_table ();
|
initialize_asn1_error_table ();
|
||||||
if(getarg(args, num_args, argc, argv, &optind))
|
if(getarg(args, num_args, argc, argv, &optidx))
|
||||||
usage(1);
|
usage(1);
|
||||||
if(help_flag)
|
if(help_flag)
|
||||||
usage(0);
|
usage(0);
|
||||||
@@ -263,8 +261,8 @@ main(int argc, char **argv)
|
|||||||
print_version(NULL);
|
print_version(NULL);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
argv += optind;
|
argv += optidx;
|
||||||
argc -= optind;
|
argc -= optidx;
|
||||||
if (argc != 1)
|
if (argc != 1)
|
||||||
usage (1);
|
usage (1);
|
||||||
return doit (argv[0]);
|
return doit (argv[0]);
|
||||||
|
Reference in New Issue
Block a user