summaryrefslogtreecommitdiffstats
path: root/sys/sys/syscall_mi.h
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2017-04-20 15:21:51 +0000
committerderaadt <deraadt@openbsd.org>2017-04-20 15:21:51 +0000
commitf8e00d7d74088cac7dac24c49b8d6e2c80f8db96 (patch)
tree683a7152d7632d9abc871e7b405e38fce58ecfff /sys/sys/syscall_mi.h
parentOnly set up a current target for mouse key bindings. Fixes: (diff)
downloadwireguard-openbsd-f8e00d7d74088cac7dac24c49b8d6e2c80f8db96.tar.xz
wireguard-openbsd-f8e00d7d74088cac7dac24c49b8d6e2c80f8db96.zip
only 32 bits of the pledgecode were passed up via ktrace
from Anton Lindqvist ok semarie
Diffstat (limited to 'sys/sys/syscall_mi.h')
-rw-r--r--sys/sys/syscall_mi.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/syscall_mi.h b/sys/sys/syscall_mi.h
index 24521bdaa2f..bf0a0fff6a6 100644
--- a/sys/sys/syscall_mi.h
+++ b/sys/sys/syscall_mi.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: syscall_mi.h,v 1.17 2017/02/14 10:31:15 mpi Exp $ */
+/* $OpenBSD: syscall_mi.h,v 1.18 2017/04/20 15:21:51 deraadt Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -45,8 +45,9 @@ static inline int
mi_syscall(struct proc *p, register_t code, const struct sysent *callp,
register_t *argp, register_t retval[2])
{
+ uint64_t tval;
int lock = !(callp->sy_flags & SY_NOLOCK);
- int error, pledged, tval;
+ int error, pledged;
/* refresh the thread's cache of the process's creds */
refreshcreds(p);