about summary refs log tree commit diff
path: root/linuxthreads/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-06-10 19:51:45 +0000
committerUlrich Drepper <drepper@redhat.com>2000-06-10 19:51:45 +0000
commit425638fbc756082c8f828b2931787f7128afa1e8 (patch)
treea3452deb7562806f99caf380a4e6d2008a3afb25 /linuxthreads/sysdeps
parent3593973b3b44ac65939fea0855e78eb1a96656b1 (diff)
downloadglibc-425638fbc756082c8f828b2931787f7128afa1e8.tar.gz
glibc-425638fbc756082c8f828b2931787f7128afa1e8.tar.xz
glibc-425638fbc756082c8f828b2931787f7128afa1e8.zip
Update.
2000-06-10  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/pthread/timer_routines.c (list_append): Little fix to
	reall append the entry.

	list and remove from active list.
Diffstat (limited to 'linuxthreads/sysdeps')
-rw-r--r--linuxthreads/sysdeps/pthread/timer_routines.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linuxthreads/sysdeps/pthread/timer_routines.c b/linuxthreads/sysdeps/pthread/timer_routines.c
index 42c0131662..520f6ee2e7 100644
--- a/linuxthreads/sysdeps/pthread/timer_routines.c
+++ b/linuxthreads/sysdeps/pthread/timer_routines.c
@@ -81,7 +81,7 @@ list_append (struct list_links *list, struct list_links *newp)
   newp->prev = list->prev;
   newp->next = list;
   list->prev->next = newp;
-  list->prev = list;
+  list->prev = newp;
 }
 
 static inline void
@@ -500,7 +500,7 @@ thread_attr_compare (const pthread_attr_t *left, const pthread_attr_t *right)
 /* Search the list of active threads and find one which has matching
    attributes.  Global mutex lock must be held by caller.  */
 struct thread_node *
-__timer_thread_find_matching (const pthread_attr_t *desired_attr, 
+__timer_thread_find_matching (const pthread_attr_t *desired_attr,
 			      clockid_t desired_clock_id)
 {
   struct list_links *iter = list_first (&thread_active_list);