summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1998-08-23 16:53:01 +0000
committerkstailey <kstailey@cvs.openbsd.org>1998-08-23 16:53:01 +0000
commit68b8a90f0fb5a4cdd5d17c76af5197fddc04be65 (patch)
tree5fb572e7f36239531cd5cfd3a6af270c82cab98c
parentb056f8ef8097b1963e2b530eb56b85e2d0a5ee22 (diff)
optimize declaration of "union sigval sv"
-rw-r--r--sys/arch/sun3/sun3/trap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/sun3/sun3/trap.c b/sys/arch/sun3/sun3/trap.c
index 28af62b9bc0..bc59d8ae546 100644
--- a/sys/arch/sun3/sun3/trap.c
+++ b/sys/arch/sun3/sun3/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.18 1998/08/19 23:43:28 millert Exp $ */
+/* $OpenBSD: trap.c,v 1.19 1998/08/23 16:53:00 kstailey Exp $ */
/* $NetBSD: trap.c,v 1.63-1.65ish 1997/01/16 15:41:40 gwr Exp $ */
/*
@@ -208,7 +208,6 @@ trap(type, code, v, frame)
u_int ucode;
u_quad_t sticks;
int si_type;
- union sigval sv;
cnt.v_trap++;
p = curproc;
@@ -594,7 +593,9 @@ finish:
return;
/* Post a signal if necessary. */
if (sig != 0) {
- sv.sival_ptr = (void *)v;
+ union sigval sv;
+
+ sv.sival_int = v;
trapsignal(p, sig, ucode, si_type, sv);
}
douret: