Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/netbsd32 Simplify a tiny bit.



details:   https://anonhg.NetBSD.org/src/rev/e665229db1e5
branches:  trunk
changeset: 338220:e665229db1e5
user:      matt <matt%NetBSD.org@localhost>
date:      Fri May 15 07:56:25 2015 +0000

description:
Simplify a tiny bit.

diffstat:

 sys/compat/netbsd32/netbsd32_lwp.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r 82d167b740b7 -r e665229db1e5 sys/compat/netbsd32/netbsd32_lwp.c
--- a/sys/compat/netbsd32/netbsd32_lwp.c        Fri May 15 07:52:51 2015 +0000
+++ b/sys/compat/netbsd32/netbsd32_lwp.c        Fri May 15 07:56:25 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_lwp.c,v 1.17 2015/05/15 07:52:51 matt Exp $   */
+/*     $NetBSD: netbsd32_lwp.c,v 1.18 2015/05/15 07:56:25 matt Exp $   */
 
 /*
  *  Copyright (c) 2005, 2006, 2007 The NetBSD Foundation.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_lwp.c,v 1.17 2015/05/15 07:52:51 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_lwp.c,v 1.18 2015/05/15 07:56:25 matt Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -291,6 +291,5 @@
        if ((error = lwp_ctl_alloc(&vaddr)) != 0)
                return error;
        NETBSD32PTR32(vaddr32, (void *)vaddr);
-       return copyout(&vaddr32, SCARG_P32(uap, address),
-           sizeof(netbsd32_pointer_t));
+       return copyout(&vaddr32, SCARG_P32(uap, address), sizeof(vaddr32));
 }



Home | Main Index | Thread Index | Old Index