projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b0853a
)
Try to fix internal_sysctl() for MacOSX
author
Kamil Rytarowski
<n54@gmx.com>
Fri, 31 Aug 2018 08:51:29 +0000
(08:51 +0000)
committer
Kamil Rytarowski
<n54@gmx.com>
Fri, 31 Aug 2018 08:51:29 +0000
(08:51 +0000)
Cast the first argument to (int *) removing const.
llvm-svn: 341187
compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
index
cfc685d
..
5420869
100644
(file)
--- a/
compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
+++ b/
compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
@@
-215,7
+215,7
@@
int internal_fork() {
int internal_sysctl(const int *name, unsigned int namelen, void *oldp,
uptr *oldlenp, const void *newp, uptr newlen) {
- return sysctl(name, namelen, oldp, (size_t *)oldlenp, newp, (size_t)newlen);
+ return sysctl(
(int *)
name, namelen, oldp, (size_t *)oldlenp, newp, (size_t)newlen);
}
int internal_forkpty(int *amaster) {