mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
Remove some unneccessary assignments to argc
openssl.c and ts.c assign the value of opt_num_rest() to argc, but then only use the value once. Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
3ad4af89cf
commit
5d94e5b65a
@ -491,9 +491,8 @@ int help_main(int argc, char **argv)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
argc = opt_num_rest();
|
|
||||||
|
|
||||||
if (argc != 0) {
|
if (opt_num_rest() != 0) {
|
||||||
BIO_printf(bio_err, "Usage: %s\n", prog);
|
BIO_printf(bio_err, "Usage: %s\n", prog);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -319,8 +319,7 @@ int ts_main(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
argc = opt_num_rest();
|
if (mode == OPT_ERR || opt_num_rest() != 0)
|
||||||
if (mode == OPT_ERR || argc != 0)
|
|
||||||
goto opthelp;
|
goto opthelp;
|
||||||
|
|
||||||
/* Seed the random number generator if it is going to be used. */
|
/* Seed the random number generator if it is going to be used. */
|
||||||
|
Loading…
Reference in New Issue
Block a user