Fix typo in threading.h introduced by FreeBSD commits

This commit is contained in:
Kovid Goyal 2018-06-03 09:29:33 +05:30
parent b6e330e3e7
commit 29734563b4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -23,9 +23,9 @@ static inline void
set_thread_name(const char *name) {
int ret = 0;
#if defined(__APPLE__)
ret = pthreadset_name_np(name);
ret = pthread_setname_np(name);
#elif defined(__FreeBSD__)
pthread_set_name_np(pthread_self(), name);
ret = pthread_set_name_np(pthread_self(), name);
#else
ret = pthread_setname_np(pthread_self(), name);
#endif