Skip to content

Commit

Permalink
fix pthread_setname_np(3) wrong call (baresip#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
leleliu008 authored Sep 2, 2024
1 parent 5cc9aa7 commit efcca9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/thread/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ static int handler(void *p)
#elif defined(HAVE_PTHREAD)
#if defined(OPENBSD)
(void)pthread_set_name_np(*th.thr, th.name);
#elif defined(__NetBSD__)
(void)pthread_setname_np(*th.thr, "%s", th.name);
#else
(void)pthread_setname_np(*th.thr, th.name);
#endif
Expand Down

0 comments on commit efcca9d

Please sign in to comment.