From 8aee52740f7594bd4a53b5f9ab42f69cf6f904d4 Mon Sep 17 00:00:00 2001 From: Miro Stauder Date: Tue, 12 Mar 2024 18:14:51 +0000 Subject: [PATCH] fix type casts --- lib/ProxySQL_Admin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ProxySQL_Admin.cpp b/lib/ProxySQL_Admin.cpp index f826157880..3a1239b340 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -4370,18 +4370,18 @@ void admin_session_handler(MySQL_Session *sess, void *_pa, PtrSize_t *pkt) { } if (GloMTH->variables.ssl_p2s_ca == NULL && GloMTH->variables.ssl_p2s_capath == NULL) { - SPA->send_MySQL_ERR(&sess->client_myds->myprot, "'mysql-ssl_p2s_ca' and 'mysql-ssl_p2s_capath' have not been configured"); + SPA->send_MySQL_ERR(&sess->client_myds->myprot, (char *)"'mysql-ssl_p2s_ca' and 'mysql-ssl_p2s_capath' have not been configured"); break; } char msg[256]; uint64_t duration = 0ULL; if (SPA->ProxySQL_Test___CA_Certificate_Load_And_Verify(&duration, test_arg1, GloMTH->variables.ssl_p2s_ca, GloMTH->variables.ssl_p2s_capath)) { - sprintf(msg, "Took %llums in loading and verifying CA Certificate for %d times\n", duration, test_arg1); + sprintf(msg, "Took %lums in loading and verifying CA Certificate for %d times\n", duration, test_arg1); SPA->send_MySQL_OK(&sess->client_myds->myprot, msg); } else { - SPA->send_MySQL_ERR(&sess->client_myds->myprot, "Unable to verify CA Certificate"); + SPA->send_MySQL_ERR(&sess->client_myds->myprot, (char *)"Unable to verify CA Certificate"); } } break;