From cea9b33acc13e7683e3646fca04953d14e3211b7 Mon Sep 17 00:00:00 2001 From: Luis Henriques Date: Thu, 22 May 2025 15:55:27 +0100 Subject: Fix build in musl libc Function fuse_set_thread_name() assumes that pthread_t is an unsigned long and fails to compile in musl libc with the following: ../lib/util.c: In function 'fuse_set_thread_name': ../lib/util.c:48:28: error: passing argument 1 of 'pthread_setname_np' makes \ pointer from integer without a cast [-Wint-conversion] Fix fuse_set_thread_name() by dropping the 'tid' parameter, as it is always set to pthread_self(). Signed-off-by: Luis Henriques --- lib/fuse_uring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/fuse_uring.c') diff --git a/lib/fuse_uring.c b/lib/fuse_uring.c index 62c5a4d..fb5cd8f 100644 --- a/lib/fuse_uring.c +++ b/lib/fuse_uring.c @@ -679,7 +679,7 @@ static void *fuse_uring_thread(void *arg) snprintf(thread_name, 16, "fuse-ring-%d", queue->qid); thread_name[15] = '\0'; - fuse_set_thread_name(pthread_self(), thread_name); + fuse_set_thread_name(thread_name); fuse_uring_set_thread_core(queue->qid); -- cgit v1.2.3