mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-17 13:00:43 +08:00
Fix type mismatch
This commit is contained in:
parent
eb5e79feb7
commit
e8ee8bdf2a
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user