Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/netbsd32 don't forget to convert the timespec.



details:   https://anonhg.NetBSD.org/src/rev/bfeb6be09dc7
branches:  trunk
changeset: 357958:bfeb6be09dc7
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Dec 06 04:12:25 2017 +0000

description:
don't forget to convert the timespec.
XXX: pullup-8

diffstat:

 sys/compat/netbsd32/netbsd32_compat_60.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r ac067ea92838 -r bfeb6be09dc7 sys/compat/netbsd32/netbsd32_compat_60.c
--- a/sys/compat/netbsd32/netbsd32_compat_60.c  Wed Dec 06 04:08:50 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_compat_60.c  Wed Dec 06 04:12:25 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_compat_60.c,v 1.2 2014/08/21 06:40:35 maxv Exp $      */
+/*     $NetBSD: netbsd32_compat_60.c,v 1.3 2017/12/06 04:12:25 christos Exp $  */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_60.c,v 1.2 2014/08/21 06:40:35 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_60.c,v 1.3 2017/12/06 04:12:25 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -71,6 +71,7 @@
                error = copyin(SCARG_P32(uap, ts), &ts32, sizeof ts32);
                if (error != 0)
                        return error;
+               netbsd32_to_timespec(&ts32, &ts);
                tsp = &ts;
        }
 



Home | Main Index | Thread Index | Old Index