From f2a5974b324203d7db39d9261dd802a35fec55ef Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 9 Jun 2000 04:33:00 +0000 Subject: Update. * sysdeps/pthread/posix-timer.h (timer_ptr2id): Operands in subtraction were switched. --- linuxthreads/sysdeps/pthread/posix-timer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linuxthreads/sysdeps') diff --git a/linuxthreads/sysdeps/pthread/posix-timer.h b/linuxthreads/sysdeps/pthread/posix-timer.h index b10ae736d6..fc56ba61aa 100644 --- a/linuxthreads/sysdeps/pthread/posix-timer.h +++ b/linuxthreads/sysdeps/pthread/posix-timer.h @@ -50,7 +50,6 @@ struct thread_node /* Internal representation of a timer. */ struct timer_node { - pid_t creator_pid; struct list_links links; struct sigevent event; clockid_t clock; @@ -61,6 +60,7 @@ struct timer_node unsigned int armed; unsigned int inuse; struct thread_node *thread; + pid_t creator_pid; }; @@ -94,7 +94,7 @@ timer_id2ptr (timer_t timerid) static inline int timer_ptr2id (struct timer_node *timer) { - return __timer_array - timer; + return timer - __timer_array; } -- cgit 1.4.1