* sysdeps/pthread/posix-timer.h (timer_ptr2id): Operands in
	subtraction were switched.
This commit is contained in:
Ulrich Drepper 2000-06-09 04:33:00 +00:00
parent c0f79a04a7
commit f2a5974b32
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2000-06-08 Ulrich Drepper <drepper@redhat.com>
* sysdeps/pthread/posix-timer.h (timer_ptr2id): Operands in
subtraction were switched.
* sysdeps/pthread/timer_routines.c (init_module): Use
THREAD_MAXNODES threads.

View File

@ -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;
}