Merge pull request #697 from majestrate/fix-freebsd-pthread

typo fix
This commit is contained in:
Jeff 2019-07-12 09:50:37 -04:00 committed by GitHub
commit 1a145ea515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ namespace llarp
#ifdef POSIX
#if defined(__FreeBSD__)
/* on free bsd this function has void return type */
pthread_set_name_np(pthread_self(), name.c_str();
pthread_set_name_np(pthread_self(), name.c_str());
#else
#if defined(__MACH__)
const int rc = pthread_setname_np(name.c_str());