Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/amd64 Cast away const for siginfo structure a...
details: https://anonhg.NetBSD.org/src/rev/0d8f80d84e83
branches: trunk
changeset: 581405:0d8f80d84e83
user: blymn <blymn%NetBSD.org@localhost>
date: Wed Jun 01 13:04:32 2005 +0000
description:
Cast away const for siginfo structure as the function prototype does not
have const.
diffstat:
sys/arch/amd64/amd64/netbsd32_machdep.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r c616a511b8bb -r 0d8f80d84e83 sys/arch/amd64/amd64/netbsd32_machdep.c
--- a/sys/arch/amd64/amd64/netbsd32_machdep.c Wed Jun 01 13:01:35 2005 +0000
+++ b/sys/arch/amd64/amd64/netbsd32_machdep.c Wed Jun 01 13:04:32 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_machdep.c,v 1.12 2005/03/26 05:12:34 fvdl Exp $ */
+/* $NetBSD: netbsd32_machdep.c,v 1.13 2005/06/01 13:04:32 blymn Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.12 2005/03/26 05:12:34 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.13 2005/06/01 13:04:32 blymn Exp $");
#include "opt_compat_netbsd.h"
#include "opt_execfmt.h"
@@ -301,7 +301,8 @@
frame.sf_signum = sig;
frame.sf_sip = (uint32_t)(uintptr_t)&fp->sf_si;
frame.sf_ucp = (uint32_t)(uintptr_t)&fp->sf_uc;
- netbsd32_si_to_si32(&frame.sf_si, (siginfo_t *)&ksi->ksi_info);
+ netbsd32_si_to_si32((siginfo32_t *)&frame.sf_si,
+ (siginfo_t *)__UNCONST(&ksi->ksi_info));
frame.sf_uc.uc_flags = _UC_SIGMASK;
frame.sf_uc.uc_sigmask = *mask;
frame.sf_uc.uc_link = 0;
Home |
Main Index |
Thread Index |
Old Index