summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-07-20 22:41:42 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-07-20 22:41:42 +0000
commite5dedb654d0ee2a92261869b4b6803fcf4e9e32e (patch)
tree8533f1fa69b7dedcf4917b8c6a6a1f42e93217f1 /sys
parent25c89c82900dd98c762e2dcca00616c2003e370b (diff)
Actually return a value from sys_kbind() in the non-ld.so case, or the
compiler will warn.
Diffstat (limited to 'sys')
-rw-r--r--sys/uvm/uvm_mmap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/uvm/uvm_mmap.c b/sys/uvm/uvm_mmap.c
index efce8514c13..2b7f0c2c463 100644
--- a/sys/uvm/uvm_mmap.c
+++ b/sys/uvm/uvm_mmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_mmap.c,v 1.111 2015/07/20 05:49:30 jsg Exp $ */
+/* $OpenBSD: uvm_mmap.c,v 1.112 2015/07/20 22:41:41 miod Exp $ */
/* $NetBSD: uvm_mmap.c,v 1.49 2001/02/18 21:19:08 chs Exp $ */
/*
@@ -1133,6 +1133,8 @@ sys_kbind(struct proc *p, void *v, register_t *retval)
#if defined(__vax__) || defined(__hppa64__)
/* only exists to support ld.so */
sigexit(p, SIGSYS);
+ /* NOTREACHED */
+ return EINVAL;
#else
struct sys_kbind_args /* {
syscallarg(const struct __kbind *) param;