2003-03-10 Roland McGrath <roland@redhat.com>

* td_ta_thr_iter.c (iterate_thread_list): Don't use `header.data.'
	prefix for `struct pthread' members.
	* td_thr_validate.c (check_thread_list): Likewise.
	* td_thr_tls_get_addr.c (td_thr_tls_get_addr): Likewise.
This commit is contained in:
Roland McGrath 2003-03-10 19:20:18 +00:00
parent f73acc206a
commit 8e6922b50d

View File

@ -50,8 +50,7 @@ iterate_thread_list (const td_thragent_t *ta, td_thr_iter_f *callback,
while (list.next != head)
{
psaddr_t addr = ((psaddr_t) list.next
- offsetof (struct pthread, list));
psaddr_t addr = ((psaddr_t) list.next - offsetof (struct pthread, list));
int schedpolicy;
if (ps_pdread (ta->ph, &((struct pthread *) addr)->schedpolicy,