From e8ee8bdf2a6fa0b8bde192c71e0c0bfcd45c4bb9 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 6 Jul 2010 08:08:46 -0700 Subject: Fix type mismatch --- nptl/ChangeLog | 5 +++++ nptl/sysdeps/unix/sysv/linux/pthread_getname.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 5a392ef..c1f8620 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,8 @@ +2010-07-06 Andreas Schwab + + * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np): + Fix type mismatch. + 2010-07-03 Ulrich Drepper * tst-abstime.c (do_test): Some more cleanups diff --git a/nptl/sysdeps/unix/sysv/linux/pthread_getname.c b/nptl/sysdeps/unix/sysv/linux/pthread_getname.c index 593219b..6e7786f 100644 --- a/nptl/sysdeps/unix/sysv/linux/pthread_getname.c +++ b/nptl/sysdeps/unix/sysv/linux/pthread_getname.c @@ -42,7 +42,7 @@ pthread_getname_np (th, buf, len) if (len < TASK_COMM_LEN) return ERANGE; - if (th == THREAD_SELF) + if (pd == THREAD_SELF) return prctl (PR_GET_NAME, buf) ? errno : 0; #define FMT "/proc/self/task/%u/comm" -- cgit v1.1