Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Use sizeof(*pte) instead sizeof(type)



details:   https://anonhg.NetBSD.org/src/rev/6a19958193b0
branches:  trunk
changeset: 764648:6a19958193b0
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Apr 29 22:09:08 2011 +0000

description:
Use sizeof(*pte) instead sizeof(type)

diffstat:

 sys/arch/mips/mips/process_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1c0f00cf84a1 -r 6a19958193b0 sys/arch/mips/mips/process_machdep.c
--- a/sys/arch/mips/mips/process_machdep.c      Fri Apr 29 22:08:17 2011 +0000
+++ b/sys/arch/mips/mips/process_machdep.c      Fri Apr 29 22:09:08 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: process_machdep.c,v 1.33 2011/02/20 07:45:48 matt Exp $        */
+/*     $NetBSD: process_machdep.c,v 1.34 2011/04/29 22:09:08 matt Exp $        */
 
 /*
  * Copyright (c) 1993 The Regents of the University of California.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.33 2011/02/20 07:45:48 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.34 2011/04/29 22:09:08 matt Exp $");
 
 /*
  * This file may seem a bit stylized, but that so that it's easier to port.
@@ -145,7 +145,7 @@
 #endif
 
        fpu_save_lwp(l);
-       memcpy(regs, &pcb->pcb_fpregs, sizeof(struct fpreg));
+       memcpy(regs, &pcb->pcb_fpregs, sizeof(*regs));
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index