diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-06-09 06:30:08 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-06-09 06:30:08 +0000 |
commit | 7987cf3a1db1039d6aa777823cd6f4472c5f6341 (patch) | |
tree | e942159b4eeccf2fd6ce031c9915d07f21ec2c10 /linuxthreads/sysdeps | |
parent | 3f02f778cdbec7d95e0a9d6f9368ce9cda0a6d03 (diff) | |
download | glibc-7987cf3a1db1039d6aa777823cd6f4472c5f6341.tar.gz glibc-7987cf3a1db1039d6aa777823cd6f4472c5f6341.tar.xz glibc-7987cf3a1db1039d6aa777823cd6f4472c5f6341.zip |
(__timer_thread_queue_timer): Correct handling of matching variable.
Diffstat (limited to 'linuxthreads/sysdeps')
-rw-r--r-- | linuxthreads/sysdeps/pthread/timer_routines.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linuxthreads/sysdeps/pthread/timer_routines.c b/linuxthreads/sysdeps/pthread/timer_routines.c index 8d45f05207..a5f2561449 100644 --- a/linuxthreads/sysdeps/pthread/timer_routines.c +++ b/linuxthreads/sysdeps/pthread/timer_routines.c @@ -416,7 +416,7 @@ __timer_thread_queue_timer (struct thread_node *thread, struct timer_node *insert) { struct list_links *iter; - struct timer_node *matching = NULL; + struct list_links *matching = NULL; struct timer_node *timer = NULL; for (iter = list_first (&thread->timer_queue); @@ -427,7 +427,7 @@ __timer_thread_queue_timer (struct thread_node *thread, if (insert->clock == timer->clock) { - matching = timer; + matching = iter; if (timespec_compare (&insert->expirytime, &timer->expirytime) < 0) break; } @@ -439,7 +439,7 @@ __timer_thread_queue_timer (struct thread_node *thread, /* We cannot queue this timer. */ return -1; - timer = matching; + iter = matching; } list_insbefore (iter, &insert->links); |