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:
95f4120
)
Try to unbreak internal_sysctl() for MacOSX
author
Kamil Rytarowski
<n54@gmx.com>
Fri, 31 Aug 2018 09:35:33 +0000
(09:35 +0000)
committer
Kamil Rytarowski
<n54@gmx.com>
Fri, 31 Aug 2018 09:35:33 +0000
(09:35 +0000)
Cast the 5th argument to (void *), removing cast.
llvm-svn: 341192
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
5420869
..
4861558
100644
(file)
--- a/
compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
+++ b/
compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
@@
-215,7
+215,8
@@
int internal_fork() {
int internal_sysctl(const int *name, unsigned int namelen, void *oldp,
uptr *oldlenp, const void *newp, uptr newlen) {
- return sysctl((int *)name, namelen, oldp, (size_t *)oldlenp, newp, (size_t)newlen);
+ return sysctl((int *)name, namelen, oldp, (size_t *)oldlenp, (void *)newp,
+ (size_t)newlen);
}
int internal_forkpty(int *amaster) {