This is an automated email from the ASF dual-hosted git repository.
dmeden pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 1e83e9ffa7 Fix redundant cast to the same type (#12152)
1e83e9ffa7 is described below
commit 1e83e9ffa71530ceab6f49491810a9b23bf197d6
Author: Damian Meden <[email protected]>
AuthorDate: Thu Apr 3 10:10:48 2025 +0200
Fix redundant cast to the same type (#12152)
---
src/api/InkAPI.cc | 2 +-
src/proxy/http/remap/RemapConfig.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/api/InkAPI.cc b/src/api/InkAPI.cc
index dbd68d6fc9..ff1ff2b57d 100644
--- a/src/api/InkAPI.cc
+++ b/src/api/InkAPI.cc
@@ -8180,7 +8180,7 @@ TSSslServerContextCreate(TSSslX509 cert, const char
*certname, const char *rsp_f
if (ret && SSLConfigParams::ssl_ocsp_enabled && cert && certname) {
if (SSL_CTX_set_tlsext_status_cb(reinterpret_cast<SSL_CTX *>(ret),
ssl_callback_ocsp_stapling)) {
if (!ssl_stapling_init_cert(reinterpret_cast<SSL_CTX *>(ret),
reinterpret_cast<X509 *>(cert), certname, rsp_file)) {
- Warning("failed to configure SSL_CTX for OCSP Stapling info for
certificate at %s", (const char *)certname);
+ Warning("failed to configure SSL_CTX for OCSP Stapling info for
certificate at %s", certname);
}
}
}
diff --git a/src/proxy/http/remap/RemapConfig.cc
b/src/proxy/http/remap/RemapConfig.cc
index 9a5d8cb64e..463ea9f59e 100644
--- a/src/proxy/http/remap/RemapConfig.cc
+++ b/src/proxy/http/remap/RemapConfig.cc
@@ -328,7 +328,7 @@ parse_remap_fragment(const char *path, BUILD_TABLE_INFO
*bti, char *errbuf, size
nbti.rules_list = bti->rules_list;
nbti.rewrite = bti->rewrite;
- Dbg(dbg_ctl_url_rewrite, "[%s] including remap configuration from %s",
__func__, (const char *)path);
+ Dbg(dbg_ctl_url_rewrite, "[%s] including remap configuration from %s",
__func__, path);
success = remap_parse_config_bti(path, &nbti);
// The sub-parse might have updated the rules list, so push it up to the
parent parse.