summaryrefslogtreecommitdiff
path: root/lib/tools
diff options
context:
space:
mode:
authorPhilipp Klaus Krause <pkk@spth.de>2020-10-14 10:45:34 +0200
committerPhilipp Klaus Krause <pkk@spth.de>2020-10-14 10:45:34 +0200
commit894c45b308c98852769263d98a18e517183f414b (patch)
tree4981410b003cb23b600964439e143286004e2b5a /lib/tools
parentb74110309f8baafd57a1373677d8d8a09afdc61c (diff)
downloaderlang-894c45b308c98852769263d98a18e517183f414b.tar.gz
Since the string from strerror should never be modified, use const.
Diffstat (limited to 'lib/tools')
-rw-r--r--lib/tools/c_src/erl_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tools/c_src/erl_memory.c b/lib/tools/c_src/erl_memory.c
index 13a3fccc6d..d52203c7cd 100644
--- a/lib/tools/c_src/erl_memory.c
+++ b/lib/tools/c_src/erl_memory.c
@@ -1859,7 +1859,7 @@ error_string(int error)
error_str = unknown_error;
if (error > 0) {
- char *str = strerror(error);
+ const char *str = strerror(error);
if (str)
error_str = str;
}