Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libpthread_dbg/Attic/pthread_dbg.c,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libpthread_dbg/Attic/pthread_dbg.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.39 retrieving revision 1.40 diff -u -p -r1.39 -r1.40 --- src/lib/libpthread_dbg/Attic/pthread_dbg.c 2007/10/16 15:06:11 1.39 +++ src/lib/libpthread_dbg/Attic/pthread_dbg.c 2008/03/07 22:27:07 1.40 @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_dbg.c,v 1.39 2007/10/16 15:06:11 ad Exp $ */ +/* $NetBSD: pthread_dbg.c,v 1.40 2008/03/07 22:27:07 ad Exp $ */ /*- * Copyright (c) 2002 Wasabi Systems, Inc. @@ -36,7 +36,7 @@ */ #include -__RCSID("$NetBSD: pthread_dbg.c,v 1.39 2007/10/16 15:06:11 ad Exp $"); +__RCSID("$NetBSD: pthread_dbg.c,v 1.40 2008/03/07 22:27:07 ad Exp $"); #define __EXPOSE_STACK 1 @@ -419,16 +419,17 @@ td_tsd_iter(td_proc_t *proc, int (*call)(pthread_key_t, void (*)(void *), void *), void *arg) { int val; - int i, allocated; + int i; + void *allocated; void (*destructor)(void *); for (i = 0; i < PTHREAD_KEYS_MAX; i++) { - val = READ(proc, proc->tsdallocaddr + i * sizeof(int), + val = READ(proc, proc->tsdallocaddr + i * sizeof(allocated), &allocated, sizeof(allocated)); if (val != 0) return val; - if (allocated) { + if ((uintptr_t)allocated) { val = READ(proc, proc->tsddestaddr + i * sizeof(destructor), &destructor, sizeof(destructor));