about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2010-07-06 08:08:46 -0700
committerUlrich Drepper <drepper@redhat.com>2010-07-06 08:08:46 -0700
commite8ee8bdf2a6fa0b8bde192c71e0c0bfcd45c4bb9 (patch)
tree422fa290185aa0a8c4583a08fb70315e1d11aa7e /nptl
parenteb5e79feb71e6a9bf7fcb59a5e2c56ab09a08868 (diff)
downloadglibc-e8ee8bdf2a6fa0b8bde192c71e0c0bfcd45c4bb9.tar.gz
glibc-e8ee8bdf2a6fa0b8bde192c71e0c0bfcd45c4bb9.tar.xz
glibc-e8ee8bdf2a6fa0b8bde192c71e0c0bfcd45c4bb9.zip
Fix type mismatch
Diffstat (limited to 'nptl')
-rw-r--r--nptl/ChangeLog5
-rw-r--r--nptl/sysdeps/unix/sysv/linux/pthread_getname.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 5a392effdb..c1f8620eb4 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,3 +1,8 @@
+2010-07-06  Andreas Schwab  <schwab@redhat.com>
+
+	* sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
+	Fix type mismatch.
+
 2010-07-03  Ulrich Drepper  <drepper@redhat.com>
 
 	* 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 593219b8ff..6e7786f987 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"