From a020f54c25985fc83e809daa15a3920731d39612 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Sat, 10 Jun 2017 15:25:56 -0400 Subject: [PATCH] Remove needless type casting. CLA: trivial Reviewed-by: Kurt Roeckx Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/3627) --- crypto/x509/by_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/x509/by_file.c b/crypto/x509/by_file.c index fa944e81e5..032ff38645 100644 --- a/crypto/x509/by_file.c +++ b/crypto/x509/by_file.c @@ -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); -- 2.39.2