Module Name: src
Committed By: kre
Date: Sat Apr 6 16:22:09 UTC 2019
Modified Files:
src/sys/compat/freebsd: freebsd_syscall.c
Log Message:
If using a cast for &code to make it a u_long * is acceptable a
few lines earlier, it should work here too.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/compat/freebsd/freebsd_syscall.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/freebsd/freebsd_syscall.c
diff -u src/sys/compat/freebsd/freebsd_syscall.c:1.3 src/sys/compat/freebsd/freebsd_syscall.c:1.4
--- src/sys/compat/freebsd/freebsd_syscall.c:1.3 Sat Apr 6 03:06:28 2019
+++ src/sys/compat/freebsd/freebsd_syscall.c Sat Apr 6 16:22:09 2019
@@ -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);