Module Name: src
Committed By: joerg
Date: Thu Jun 30 23:28:03 UTC 2011
Modified Files:
src/sys/arch/i386/i386: machdep.c
Log Message:
Fix sizeof() usage in memcpy, curtesy of the new warning in clang.
To generate a diff of this commit:
cvs rdiff -u -r1.704 -r1.705 src/sys/arch/i386/i386/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/i386/i386/machdep.c
diff -u src/sys/arch/i386/i386/machdep.c:1.704 src/sys/arch/i386/i386/machdep.c:1.705
--- src/sys/arch/i386/i386/machdep.c:1.704 Sun Jun 12 03:35:42 2011
+++ src/sys/arch/i386/i386/machdep.c Thu Jun 30 23:28:03 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.704 2011/06/12 03:35:42 rmind Exp $ */
+/* $NetBSD: machdep.c,v 1.705 2011/06/30 23:28:03 joerg Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006, 2008, 2009
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.704 2011/06/12 03:35:42 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.705 2011/06/30 23:28:03 joerg Exp $");
#include "opt_beep.h"
#include "opt_compat_ibcs2.h"
@@ -1861,7 +1861,7 @@
memcpy(
&pcb->pcb_savefpu.sv_xmm,
&mcp->__fpregs.__fp_reg_set.__fp_xmm_state.__fp_xmm,
- sizeof (&pcb->pcb_savefpu.sv_xmm));
+ sizeof (pcb->pcb_savefpu.sv_xmm));
} else {
/* This is a weird corner case */
process_xmm_to_s87((struct savexmm *)