diff options
author | Kamil Rytarowski <n54@gmx.com> | 2017-11-20 15:39:30 +0000 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2017-11-20 15:39:30 +0000 |
commit | cd5a55a06385bd71911e4fe87c32433b60493df0 (patch) | |
tree | ea64c5193c54ff5ba2309910d70920fa204f32f5 /lib | |
parent | 45a10a2eca1fb010c70dfdde723e6c799ae11bf0 (diff) |
Correct return types of NetBSD specific functions
The __libc_mutex_lock, __libc_mutex_unlock and __libc_thr_setcancelstate
functions return int, not void.
This does not seem to introduce a functional change, however it looks
better with fixed the function prototype.
Sponsored by <The NetBSD Foundation>
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@318654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sanitizer_common/sanitizer_common_interceptors.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sanitizer_common/sanitizer_common_interceptors.inc b/lib/sanitizer_common/sanitizer_common_interceptors.inc index efe869775..09e9b6eca 100644 --- a/lib/sanitizer_common/sanitizer_common_interceptors.inc +++ b/lib/sanitizer_common/sanitizer_common_interceptors.inc @@ -3829,11 +3829,11 @@ INTERCEPTOR(int, pthread_mutex_unlock, void *m) { #endif #if SANITIZER_NETBSD -INTERCEPTOR(void, __libc_mutex_lock, void *m) \ +INTERCEPTOR(int, __libc_mutex_lock, void *m) \ ALIAS(WRAPPER_NAME(pthread_mutex_lock)); -INTERCEPTOR(void, __libc_mutex_unlock, void *m) \ +INTERCEPTOR(int, __libc_mutex_unlock, void *m) \ ALIAS(WRAPPER_NAME(pthread_mutex_unlock)); -INTERCEPTOR(void, __libc_thr_setcancelstate, int state, int *oldstate) \ +INTERCEPTOR(int, __libc_thr_setcancelstate, int state, int *oldstate) \ ALIAS(WRAPPER_NAME(pthread_setcancelstate)); #endif |