]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 9 Jun 2000 04:33:00 +0000 (04:33 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 9 Jun 2000 04:33:00 +0000 (04:33 +0000)
* sysdeps/pthread/posix-timer.h (timer_ptr2id): Operands in
subtraction were switched.

linuxthreads/ChangeLog
linuxthreads/sysdeps/pthread/posix-timer.h

index 168d1f2583b03c8851292e1d3d0d1ce7324ae423..d8bc2cfd90a45c1fe73d97022e8e61f841218c89 100644 (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.
 
index b10ae736d6a867fec652b6ac4c57a3ed025ee922..fc56ba61aaa42e39a3b58596899f19e513b2ec67 100644 (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;
 }
 
 
This page took 0.048164 seconds and 5 git commands to generate.