summaryrefslogtreecommitdiffstats
path: root/base/tps-client
diff options
context:
space:
mode:
authorMatthew Harmsen <mharmsen@redhat.com>2017-01-31 19:56:47 -0700
committerMatthew Harmsen <mharmsen@redhat.com>2017-01-31 19:56:47 -0700
commit30e5295d75edd79f30f3c24b7d5576109de02b3d (patch)
tree4276908d8c2a0e36f8ce58c7e505de52ddf0233f /base/tps-client
parent71ae20c42c62e09e7f0f576f21076051ec6eecd6 (diff)
downloadpki-30e5295d75edd79f30f3c24b7d5576109de02b3d.tar.gz
pki-30e5295d75edd79f30f3c24b7d5576109de02b3d.tar.xz
pki-30e5295d75edd79f30f3c24b7d5576109de02b3d.zip
Cast 'char *' to 'const char *' in C++ files.
Diffstat (limited to 'base/tps-client')
-rw-r--r--base/tps-client/src/main/ConfigStore.cpp2
-rw-r--r--base/tps-client/src/main/RollingLogFile.cpp2
2 files changed, 2 insertions, 2 deletions
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, ".");