Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/freebsd If using a cast for &code to make it a u_...



details:   https://anonhg.NetBSD.org/src/rev/06a8e08de1a5
branches:  trunk
changeset: 998069:06a8e08de1a5
user:      kre <kre%NetBSD.org@localhost>
date:      Sat Apr 06 16:22:09 2019 +0000

description:
If using a cast for &code to make it a u_long * is acceptable a
few lines earlier, it should work here too.

diffstat:

 sys/compat/freebsd/freebsd_syscall.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e45fbd46434f -r 06a8e08de1a5 sys/compat/freebsd/freebsd_syscall.c
--- a/sys/compat/freebsd/freebsd_syscall.c      Sat Apr 06 16:22:01 2019 +0000
+++ b/sys/compat/freebsd/freebsd_syscall.c      Sat Apr 06 16:22:09 2019 +0000
@@ -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 @@
                 */
                error = ufetch_long((void *)(params +
                                             _QUAD_LOWWORD * sizeof(int)),
-                                   &code);
+                                   (u_long *)&code);
                if (error)
                        goto bad;
                params += sizeof(quad_t);



Home | Main Index | Thread Index | Old Index