summaryrefslogtreecommitdiff
path: root/tools/sanity_check
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sanity_check')
-rw-r--r--tools/sanity_check/systemtest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sanity_check/systemtest.cpp b/tools/sanity_check/systemtest.cpp
index 4801ac2f09..025eb0ef25 100644
--- a/tools/sanity_check/systemtest.cpp
+++ b/tools/sanity_check/systemtest.cpp
@@ -295,7 +295,7 @@ long long unsigned int system_available_physical_mem() {
char buf[256];
long long unsigned int res = 0;
- if (0<read_string((char*)"/proc/meminfo", buf, sizeof (buf))) {
+ if (0<read_string(const_cast<char*>("/proc/meminfo"), buf, sizeof (buf))) {
if (strncmp (buf, "MemTotal:", 9) == 0) {
if (sscanf (buf, "%*s %llu", &res) != 1) {
perror ("parse error in /proc/meminfo");