aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-06-09 04:33:00 +0000
committerUlrich Drepper <drepper@redhat.com>2000-06-09 04:33:00 +0000
commitf2a5974b324203d7db39d9261dd802a35fec55ef (patch)
treee3a0d5a6c4452a93ecd544a24f8692c7bc12f32b
parentc0f79a04a778d0a42ffd437fcd37739d5839a716 (diff)
downloadglibc-f2a5974b324203d7db39d9261dd802a35fec55ef.zip
glibc-f2a5974b324203d7db39d9261dd802a35fec55ef.tar.gz
glibc-f2a5974b324203d7db39d9261dd802a35fec55ef.tar.bz2
Update.
* sysdeps/pthread/posix-timer.h (timer_ptr2id): Operands in subtraction were switched.
-rw-r--r--linuxthreads/ChangeLog3
-rw-r--r--linuxthreads/sysdeps/pthread/posix-timer.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index 168d1f2..d8bc2cf 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -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.
diff --git a/linuxthreads/sysdeps/pthread/posix-timer.h b/linuxthreads/sysdeps/pthread/posix-timer.h
index b10ae73..fc56ba6 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;
}