summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-03-01 15:01:00 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-03-01 15:01:00 +0000
commitf10666784427939238b04079d24e12de1f4e27a3 (patch)
treed7120668a2eecd92689527fcf0de7e7354fee7df /sys/arch
parent3b2cd09eae0c013e0507618494313fd9cc8c19f6 (diff)
GCC 2.8 type safety
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/alpha/alpha/trap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/alpha/alpha/trap.c b/sys/arch/alpha/alpha/trap.c
index f0431d32e1e..587866436bf 100644
--- a/sys/arch/alpha/alpha/trap.c
+++ b/sys/arch/alpha/alpha/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.17 1997/11/17 01:26:38 deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.18 1998/03/01 15:00:59 niklas Exp $ */
/* $NetBSD: trap.c,v 1.19 1996/11/27 01:28:30 cgd Exp $ */
/*
@@ -151,6 +151,7 @@ trap(a0, a1, a2, entry, framep)
caddr_t v;
int user;
int typ;
+ union sigval sv;
cnt.v_trap++;
p = curproc;
@@ -447,7 +448,8 @@ panic("foo");
goto dopanic;
}
- trapsignal(p, i, ucode, typ, v);
+ sv.sival_ptr = v;
+ trapsignal(p, i, ucode, typ, sv);
out:
if (user)
userret(p, framep->tf_regs[FRAME_PC], sticks);