@@ -1701,7 +1701,7 @@ HandleSignalMode GetHandleSignalMode(int signum) {
17011701}
17021702
17031703#if !SANITIZER_GO
1704- void *internal_start_thread (void (*func)(void *arg), void *arg) {
1704+ void *internal_start_thread (void * (*func)(void *arg), void *arg) {
17051705 // Start the thread with signals blocked, otherwise it can steal user signals.
17061706 __sanitizer_sigset_t set, old;
17071707 internal_sigfillset (&set);
@@ -1712,7 +1712,7 @@ void *internal_start_thread(void(*func)(void *arg), void *arg) {
17121712#endif
17131713 internal_sigprocmask (SIG_SETMASK, &set, &old);
17141714 void *th;
1715- real_pthread_create (&th, nullptr , ( void *(*)( void *arg)) func, arg);
1715+ real_pthread_create (&th, nullptr , func, arg);
17161716 internal_sigprocmask (SIG_SETMASK, &old, nullptr );
17171717 return th;
17181718}
@@ -1721,7 +1721,7 @@ void internal_join_thread(void *th) {
17211721 real_pthread_join (th, nullptr );
17221722}
17231723#else
1724- void *internal_start_thread (void (*func)(void *), void *arg) { return 0 ; }
1724+ void *internal_start_thread (void * (*func)(void *), void *arg) { return 0 ; }
17251725
17261726void internal_join_thread (void *th) {}
17271727#endif
0 commit comments