aboutsummaryrefslogtreecommitdiffstats
path: root/lib/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.c')
-rw-r--r--lib/util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/util.c b/lib/util.c
index 7583d47..2914f1c 100644
--- a/lib/util.c
+++ b/lib/util.c
@@ -42,12 +42,11 @@ int libfuse_strtol(const char *str, long *res)
return 0;
}
-void fuse_set_thread_name(unsigned long tid, const char *name)
+void fuse_set_thread_name(const char *name)
{
#ifdef HAVE_PTHREAD_SETNAME_NP
- pthread_setname_np(tid, name);
+ pthread_setname_np(pthread_self(), name);
#else
- (void)tid;
(void)name;
#endif
}