summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1998-12-23 16:23:47 +0000
committermillert <millert@openbsd.org>1998-12-23 16:23:47 +0000
commitb7bbae66c5218611ec7ec4d5365b4a7712fe6645 (patch)
treecaf998be8a1a9e6ae9b5d8d5ff1ceb19f18837a3
parentOpps. the flag that says that we are sleeping is MNT_MWAIT, not MNT_WAIT (diff)
downloadwireguard-openbsd-b7bbae66c5218611ec7ec4d5365b4a7712fe6645.tar.xz
wireguard-openbsd-b7bbae66c5218611ec7ec4d5365b4a7712fe6645.zip
Granted this is #if 0'd out, but it should have a chance of compiling anyway
-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;