Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/netbsd32 Use the right type in sizeof() for copyi...



details:   https://anonhg.NetBSD.org/src/rev/a34800a6b650
branches:  trunk
changeset: 339325:a34800a6b650
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Jul 12 14:06:52 2015 +0000

description:
Use the right type in sizeof() for copyin() in adjtime

diffstat:

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

diffs (27 lines):

diff -r 5fdc7918a5a1 -r a34800a6b650 sys/compat/netbsd32/netbsd32_time.c
--- a/sys/compat/netbsd32/netbsd32_time.c       Sun Jul 12 11:40:52 2015 +0000
+++ b/sys/compat/netbsd32/netbsd32_time.c       Sun Jul 12 14:06:52 2015 +0000
@@ -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.43 2015/07/12 14:06:52 martin 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.43 2015/07/12 14:06:52 martin Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ntp.h"
@@ -332,7 +332,7 @@
        
        if (SCARG_P32(uap, delta)) {
                error = copyin(SCARG_P32(uap, delta), &atv,
-                              sizeof(struct timeval));
+                              sizeof(atv));
                if (error)
                        return (error);
 



Home | Main Index | Thread Index | Old Index