fix caddr_t lossage

This commit is contained in:
christos 2007-03-05 14:24:18 +00:00
parent c74f0279ea
commit 033371b01a
1 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux32_machdep.c,v 1.7 2007/03/04 06:01:25 christos Exp $ */
/* $NetBSD: linux32_machdep.c,v 1.8 2007/03/05 14:24:18 christos Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@ -31,7 +31,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux32_machdep.c,v 1.7 2007/03/04 06:01:25 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux32_machdep.c,v 1.8 2007/03/05 14:24:18 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -128,7 +128,7 @@ linux32_old_sendsig(const ksiginfo_t *ksi, const sigset_t *mask)
/* Allocate space for the signal handler context. */
if (onstack)
fp = (struct linux32_sigframe *)((void *)sas->ss_sp +
fp = (struct linux32_sigframe *)((char *)sas->ss_sp +
sas->ss_size);
else
fp = (struct linux32_sigframe *)tf->tf_rsp;
@ -195,7 +195,7 @@ linux32_rt_sendsig(const ksiginfo_t *ksi, const sigset_t *mask)
/* Allocate space for the signal handler context. */
if (onstack)
fp = (struct linux32_rt_sigframe *)((void *)sas->ss_sp +
fp = (struct linux32_rt_sigframe *)((char *)sas->ss_sp +
sas->ss_size);
else
fp = (struct linux32_rt_sigframe *)tf->tf_rsp;
@ -497,8 +497,8 @@ linux32_restore_sigcontext(l, scp, retval)
/* Restore signal stack. */
ss_gap = (ssize_t)
((void *)NETBSD32PTR64(scp->sc_esp_at_signal)
- (void *)sas->ss_sp);
((char *)NETBSD32PTR64(scp->sc_esp_at_signal)
- (char *)sas->ss_sp);
if (ss_gap >= 0 && ss_gap < sas->ss_size)
sas->ss_flags |= SS_ONSTACK;
else