diff options
author | 1998-08-23 16:53:00 +0000 | |
---|---|---|
committer | 1998-08-23 16:53:00 +0000 | |
commit | da8bb7d29cee4cb5e6c70d241eae7c240909223e (patch) | |
tree | ca6c438a781a333d58baedd8a0db5af5d43e26eb | |
parent | o If the user doesn't specify a file, use /dev/ksyms in preference to (diff) | |
download | wireguard-openbsd-da8bb7d29cee4cb5e6c70d241eae7c240909223e.tar.xz wireguard-openbsd-da8bb7d29cee4cb5e6c70d241eae7c240909223e.zip |
optimize declaration of "union sigval sv"
-rw-r--r-- | sys/arch/sun3/sun3/trap.c | 7 |
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: |