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>

llvm-svn: 318654
This commit is contained in:
Kamil Rytarowski 2017-11-20 15:39:30 +00:00
parent f463042312
commit 2419452505
1 changed files with 3 additions and 3 deletions

View File

@ -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