Skip to content

Commit

Permalink
Remove needless type casting.
Browse files Browse the repository at this point in the history
CLA: trivial

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from #3627)
  • Loading branch information
Rich Salz committed Jun 10, 2017
1 parent f2582f0 commit a020f54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/x509/by_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ static int by_file_ctrl(X509_LOOKUP *ctx, int cmd, const char *argp,
long argl, char **ret)
{
int ok = 0;
char *file;
const char *file;

switch (cmd) {
case X509_L_FILE_LOAD:
if (argl == X509_FILETYPE_DEFAULT) {
file = (char *)getenv(X509_get_default_cert_file_env());
file = getenv(X509_get_default_cert_file_env());
if (file)
ok = (X509_load_cert_crl_file(ctx, file,
X509_FILETYPE_PEM) != 0);
Expand Down

0 comments on commit a020f54

Please sign in to comment.