Module Name: src
Committed By: matt
Date: Fri Apr 29 22:09:08 UTC 2011
Modified Files:
src/sys/arch/mips/mips: process_machdep.c
Log Message:
Use sizeof(*pte) instead sizeof(type)
To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/mips/mips/process_machdep.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/arch/mips/mips/process_machdep.c
diff -u src/sys/arch/mips/mips/process_machdep.c:1.33 src/sys/arch/mips/mips/process_machdep.c:1.34
--- src/sys/arch/mips/mips/process_machdep.c:1.33 Sun Feb 20 07:45:48 2011
+++ src/sys/arch/mips/mips/process_machdep.c Fri Apr 29 22:09:08 2011
@@ -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;
}