[compiler-rt] r341192 - Try to unbreak internal_sysctl() for MacOSX
Kamil Rytarowski via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 31 02:35:33 PDT 2018
Author: kamil
Date: Fri Aug 31 02:35:33 2018
New Revision: 341192
URL: http://llvm.org/viewvc/llvm-project?rev=341192&view=rev
Log:
Try to unbreak internal_sysctl() for MacOSX
Cast the 5th argument to (void *), removing cast.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc?rev=341192&r1=341191&r2=341192&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc Fri Aug 31 02:35:33 2018
@@ -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) {
More information about the llvm-commits
mailing list