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 | 05ea4315fffdc8df19a563df8de318b6d40cbba8 (patch) | |
tree | 3e9c8b6e69946554f69dc11b84da54b9ae3f0d2a /lib/xray | |
parent | 3756e8110e6f7d8e1e8a47a048afe02fb3a09999 (diff) |
[sanitizer] Use const char* in internal_simple_strtoll
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334900 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/xray')
-rw-r--r-- | lib/xray/xray_utils.cc | 2 | ||||
-rw-r--r-- | lib/xray/xray_x86_64.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/xray/xray_utils.cc b/lib/xray/xray_utils.cc index a27ac9451..68f4e8c10 100644 --- a/lib/xray/xray_utils.cc +++ b/lib/xray/xray_utils.cc @@ -82,7 +82,7 @@ bool readValueFromFile(const char *Filename, if (!Success) return false; close(Fd); - char *End = nullptr; + const char *End = nullptr; long long Tmp = internal_simple_strtoll(Line, &End, 10); bool Result = false; if (Line[0] != '\0' && (*End == '\n' || *End == '\0')) { diff --git a/lib/xray/xray_x86_64.cc b/lib/xray/xray_x86_64.cc index 2021632f0..246d14483 100644 --- a/lib/xray/xray_x86_64.cc +++ b/lib/xray/xray_x86_64.cc @@ -57,7 +57,7 @@ static bool readValueFromFile(const char *Filename, close(Fd); if (!Success) return false; - char *End = nullptr; + const char *End = nullptr; long long Tmp = internal_simple_strtoll(Line, &End, 10); bool Result = false; if (Line[0] != '\0' && (*End == '\n' || *End == '\0')) { |