summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2018-08-31 09:35:33 +0000
committerKamil Rytarowski <n54@gmx.com>2018-08-31 09:35:33 +0000
commit43b15cddac7597f86ce9f93f23b8b2f28878f5c6 (patch)
tree322fdf5bc940451803d9389ced13c7b4c9bf189e
parent95f4120f09cf06203cc25e31fe743dc0a8157e06 (diff)
downloadbcm5719-llvm-43b15cddac7597f86ce9f93f23b8b2f28878f5c6.tar.gz
bcm5719-llvm-43b15cddac7597f86ce9f93f23b8b2f28878f5c6.zip
Try to unbreak internal_sysctl() for MacOSX
Cast the 5th argument to (void *), removing cast. llvm-svn: 341192
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_mac.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
index 5420869bdb7..4861558e9aa 100644
--- 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) {
OpenPOWER on IntegriCloud