Module Name: src
Committed By: snj
Date: Fri Jul 17 04:34:35 UTC 2015
Modified Files:
src/sys/compat/netbsd32 [netbsd-7]: netbsd32_time.c
Log Message:
Pull up following revision(s) (requested by martin in ticket #879):
sys/compat/netbsd32/netbsd32_time.c: revision 1.43
Use the right type in sizeof() for copyin() in adjtime
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.42.12.1 src/sys/compat/netbsd32/netbsd32_time.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/netbsd32/netbsd32_time.c
diff -u src/sys/compat/netbsd32/netbsd32_time.c:1.42 src/sys/compat/netbsd32/netbsd32_time.c:1.42.12.1
--- src/sys/compat/netbsd32/netbsd32_time.c:1.42 Tue Oct 2 01:44:28 2012
+++ src/sys/compat/netbsd32/netbsd32_time.c Fri Jul 17 04:34:34 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_time.c,v 1.42 2012/10/02 01:44:28 christos Exp $ */
+/* $NetBSD: netbsd32_time.c,v 1.42.12.1 2015/07/17 04:34:34 snj Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_time.c,v 1.42 2012/10/02 01:44:28 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_time.c,v 1.42.12.1 2015/07/17 04:34:34 snj Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ntp.h"
@@ -332,7 +332,7 @@ netbsd32___adjtime50(struct lwp *l, cons
if (SCARG_P32(uap, delta)) {
error = copyin(SCARG_P32(uap, delta), &atv,
- sizeof(struct timeval));
+ sizeof(atv));
if (error)
return (error);