From 30e5295d75edd79f30f3c24b7d5576109de02b3d Mon Sep 17 00:00:00 2001 From: Matthew Harmsen Date: Tue, 31 Jan 2017 19:56:47 -0700 Subject: Cast 'char *' to 'const char *' in C++ files. --- base/tps-client/src/main/ConfigStore.cpp | 2 +- base/tps-client/src/main/RollingLogFile.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'base/tps-client') diff --git a/base/tps-client/src/main/ConfigStore.cpp b/base/tps-client/src/main/ConfigStore.cpp index e526b4039..f91fb2c87 100644 --- a/base/tps-client/src/main/ConfigStore.cpp +++ b/base/tps-client/src/main/ConfigStore.cpp @@ -758,7 +758,7 @@ TPS_PUBLIC int ConfigStore::Commit(const bool backup, char *error_msg, int len) if (strrchr(m_cfg_file_path, '/') != NULL) { PR_snprintf((char *) basename, 256, "%s", strrchr(m_cfg_file_path, '/') +1); PR_snprintf((char *) dirname, PL_strlen(m_cfg_file_path) - PL_strlen(basename), "%s", m_cfg_file_path); - PL_strcat(dirname, '\0'); + PL_strcat(dirname, (const char *) '\0'); } else { PR_snprintf((char *) basename, 256, "%s", m_cfg_file_path); PR_snprintf((char *) dirname, 256, "."); diff --git a/base/tps-client/src/main/RollingLogFile.cpp b/base/tps-client/src/main/RollingLogFile.cpp index 692a94334..699dcb9de 100644 --- a/base/tps-client/src/main/RollingLogFile.cpp +++ b/base/tps-client/src/main/RollingLogFile.cpp @@ -400,7 +400,7 @@ void RollingLogFile::expire() { if (strrchr(m_fname, '/') != NULL) { PR_snprintf((char *) basename, 256, "%s", strrchr(m_fname, '/') +1); PR_snprintf((char *) dirname, PL_strlen(m_fname) - PL_strlen(basename), "%s", m_fname); - PL_strcat(dirname, '\0'); + PL_strcat(dirname, (const char *) '\0'); } else { PR_snprintf((char *) basename, 256, "%s", m_fname); PR_snprintf((char *) dirname, 256, "."); -- cgit