If using a cast for &code to make it a u_long * is acceptable a
few lines earlier, it should work here too.
This commit is contained in:
parent
2dd13abc5d
commit
ada06fa419
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: freebsd_syscall.c,v 1.3 2019/04/06 03:06:28 thorpej Exp $ */
|
||||
/* $NetBSD: freebsd_syscall.c,v 1.4 2019/04/06 16:22:09 kre Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: freebsd_syscall.c,v 1.3 2019/04/06 03:06:28 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: freebsd_syscall.c,v 1.4 2019/04/06 16:22:09 kre Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -100,7 +100,7 @@ freebsd_syscall(struct trapframe *frame)
|
|||
*/
|
||||
error = ufetch_long((void *)(params +
|
||||
_QUAD_LOWWORD * sizeof(int)),
|
||||
&code);
|
||||
(u_long *)&code);
|
||||
if (error)
|
||||
goto bad;
|
||||
params += sizeof(quad_t);
|
||||
|
|
Loading…
Reference in New Issue