summaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-12-23 16:23:48 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-12-23 16:23:48 +0000
commitdf35df792ccd0958dca2315d2aef540afeb20743 (patch)
tree0a7dadc4aa5831d9eb39e19e4f6c9173b164cceb /sys/compat
parent3c8d95a2e268e2fd61eb8d028e11e8bc370a6f77 (diff)
Granted this is #if 0'd out, but it should have a chance of compiling anyway
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/osf1/osf1_signal.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/compat/osf1/osf1_signal.c b/sys/compat/osf1/osf1_signal.c
index 8b3fb0aacd2..5e5b9e1a7f9 100644
--- a/sys/compat/osf1/osf1_signal.c
+++ b/sys/compat/osf1/osf1_signal.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: osf1_signal.c,v 1.7 1998/12/22 07:58:45 deraadt Exp $ */
+/* $OpenBSD: osf1_signal.c,v 1.8 1998/12/23 16:23:47 millert Exp $ */
#include <sys/param.h>
#include <sys/systm.h>
@@ -345,8 +345,7 @@ osf1_sys_signal(p, v, retval)
int signum, error;
caddr_t sg = stackgap_init(p->p_emul);
- int signum = OSF1_SIGNO(SCARG(uap, signum));
- if (signum < 0 || signum >= OSF1_NSIG) {
+ if (SCARG(uap, signum) < 0 || SCARG(uap, signum) >= OSF1_NSIG)
if (OSF1_SIGCALL(SCARG(uap, signum)) == OSF1_SIGNAL_MASK ||
OSF1_SIGCALL(SCARG(uap, signum)) == OSF1_SIGDEFER_MASK)
*retval = (int)OSF1_SIG_ERR;