Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Cast integer to pointer via intptr_t.
details: https://anonhg.NetBSD.org/src/rev/5b60c304af2b
branches: trunk
changeset: 541862:5b60c304af2b
user: scw <scw%NetBSD.org@localhost>
date: Sun Jan 19 12:59:59 2003 +0000
description:
Cast integer to pointer via intptr_t.
diffstat:
sys/kern/kern_sa.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 3b0d86ffacf0 -r 5b60c304af2b sys/kern/kern_sa.c
--- a/sys/kern/kern_sa.c Sun Jan 19 12:37:41 2003 +0000
+++ b/sys/kern/kern_sa.c Sun Jan 19 12:59:59 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_sa.c,v 1.2 2003/01/18 10:06:22 thorpej Exp $ */
+/* $NetBSD: kern_sa.c,v 1.3 2003/01/19 12:59:59 scw Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sa.c,v 1.2 2003/01/18 10:06:22 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sa.c,v 1.3 2003/01/19 12:59:59 scw Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -422,7 +422,7 @@
if (event) {
getucontext(event, &sau->sau_state.captured.e_ctx);
sau->sau_state.captured.e_sa.sa_context = (ucontext_t *)
- ((_UC_MACHINE_SP(&sau->sau_state.captured.e_ctx) -
+ (intptr_t)((_UC_MACHINE_SP(&sau->sau_state.captured.e_ctx) -
sizeof(ucontext_t))
#ifdef _UC_UCONTEXT_ALIGN
& _UC_UCONTEXT_ALIGN
@@ -436,7 +436,7 @@
if (interrupted) {
getucontext(interrupted, &sau->sau_state.captured.i_ctx);
sau->sau_state.captured.i_sa.sa_context = (ucontext_t *)
- ((_UC_MACHINE_SP(&sau->sau_state.captured.i_ctx) -
+ (intptr_t)((_UC_MACHINE_SP(&sau->sau_state.captured.i_ctx) -
sizeof(ucontext_t))
#ifdef _UC_UCONTEXT_ALIGN
& _UC_UCONTEXT_ALIGN
Home |
Main Index |
Thread Index |
Old Index