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:
Matt Caswell 2016-04-21 10:01:19 +01:00
parent 3ad4af89cf
commit 5d94e5b65a
2 changed files with 2 additions and 4 deletions

View File

@ -491,9 +491,8 @@ int help_main(int argc, char **argv)
return 0;
}
}
argc = opt_num_rest();
if (argc != 0) {
if (opt_num_rest() != 0) {
BIO_printf(bio_err, "Usage: %s\n", prog);
return 1;
}

View File

@ -319,8 +319,7 @@ int ts_main(int argc, char **argv)
break;
}
}
argc = opt_num_rest();
if (mode == OPT_ERR || argc != 0)
if (mode == OPT_ERR || opt_num_rest() != 0)
goto opthelp;
/* Seed the random number generator if it is going to be used. */