diff options
| author | Vitaly Buka <vitalybuka@google.com> | 2018-06-17 08:41:45 +0000 |
|---|---|---|
| committer | Vitaly Buka <vitalybuka@google.com> | 2018-06-17 08:41:45 +0000 |
| commit | b957f99d572399303d8c5a181199a1d4df72490e (patch) | |
| tree | 3a8593a3200ad58c1d0d7f673a7dd5ed12c87424 /compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc | |
| parent | 9786946731da30f0ad849e2ecaa779eb53777130 (diff) | |
| download | bcm5719-llvm-b957f99d572399303d8c5a181199a1d4df72490e.tar.gz bcm5719-llvm-b957f99d572399303d8c5a181199a1d4df72490e.zip | |
[sanitizer] Use const char* in internal_simple_strtoll
llvm-svn: 334900
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc index d309dac8b72..73c2141c6b3 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc @@ -236,7 +236,7 @@ uptr ThreadDescriptorSize() { char buf[64]; uptr len = confstr(_CS_GNU_LIBC_VERSION, buf, sizeof(buf)); if (len < sizeof(buf) && internal_strncmp(buf, "glibc 2.", 8) == 0) { - char *end; + const char *end; int minor = internal_simple_strtoll(buf + 8, &end, 10); if (end != buf + 8 && (*end == '\0' || *end == '.' || *end == '-')) { int patch = 0; |

