Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2]: src/lib/libpthread_dbg Pull up following revision(s) (request...



details:   https://anonhg.NetBSD.org/src/rev/1fc2c2761ac4
branches:  netbsd-2
changeset: 564012:1fc2c2761ac4
user:      snj <snj%NetBSD.org@localhost>
date:      Sat Aug 27 05:17:19 2005 +0000

description:
Pull up following revision(s) (requested by riz in ticket #5615):
        lib/libpthread_dbg/pthread_dbg.c: revision 1.25
Cast integer to pointer types via intptr_t.
Problem reported by Havard Eidnes while building evbsh5.

diffstat:

 lib/libpthread_dbg/pthread_dbg.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0fc74ccecaf9 -r 1fc2c2761ac4 lib/libpthread_dbg/pthread_dbg.c
--- a/lib/libpthread_dbg/pthread_dbg.c  Sat Aug 27 05:14:49 2005 +0000
+++ b/lib/libpthread_dbg/pthread_dbg.c  Sat Aug 27 05:17:19 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_dbg.c,v 1.16.4.3 2005/08/27 05:14:49 snj Exp $ */
+/*     $NetBSD: pthread_dbg.c,v 1.16.4.4 2005/08/27 05:17:19 snj Exp $ */
 
 /*-
  * Copyright (c) 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_dbg.c,v 1.16.4.3 2005/08/27 05:14:49 snj Exp $");
+__RCSID("$NetBSD: pthread_dbg.c,v 1.16.4.4 2005/08/27 05:17:19 snj Exp $");
 
 #include <stddef.h>
 #include <stdlib.h>
@@ -1158,7 +1158,7 @@
                _INITCONTEXT_U(&uc);
                PTHREAD_REG_TO_UCONTEXT(&uc, thread->proc->regbuf);
                PTHREAD_FPREG_TO_UCONTEXT(&uc, thread->proc->fpregbuf);
-               sp = (caddr_t)pthread__uc_sp(&uc);
+               sp = (caddr_t)(intptr_t)pthread__uc_sp(&uc);
                sp -= sizeof(uc);
 #ifdef _UC_UCONTEXT_ALIGN
                sp = (caddr_t) ((unsigned long)sp & _UC_UCONTEXT_ALIGN);



Home | Main Index | Thread Index | Old Index