Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm Drop redundant (and wrong) cast.



details:   https://anonhg.NetBSD.org/src/rev/85bd852386c1
branches:  trunk
changeset: 581585:85bd852386c1
user:      uwe <uwe%NetBSD.org@localhost>
date:      Thu Jun 02 20:27:30 2005 +0000

description:
Drop redundant (and wrong) cast.

diffstat:

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

diffs (27 lines):

diff -r 5f85837d5c86 -r 85bd852386c1 sys/arch/arm/arm/process_machdep.c
--- a/sys/arch/arm/arm/process_machdep.c        Thu Jun 02 20:14:55 2005 +0000
+++ b/sys/arch/arm/arm/process_machdep.c        Thu Jun 02 20:27:30 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: process_machdep.c,v 1.14 2005/06/01 13:01:35 scw Exp $ */
+/*     $NetBSD: process_machdep.c,v 1.15 2005/06/02 20:27:30 uwe Exp $ */
 
 /*
  * Copyright (c) 1993 The Regents of the University of California.
@@ -133,7 +133,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.14 2005/06/01 13:01:35 scw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.15 2005/06/02 20:27:30 uwe Exp $");
 
 #include <sys/proc.h>
 #include <sys/ptrace.h>
@@ -201,7 +201,7 @@
        struct trapframe *tf = process_frame(l);
 
        KASSERT(tf != NULL);
-       bcopy((caddr_t)regs->r, (caddr_t)&tf->tf_r0, sizeof(regs->r));
+       bcopy(regs->r, &tf->tf_r0, sizeof(regs->r));
        tf->tf_usr_sp = regs->r_sp;
        tf->tf_usr_lr = regs->r_lr;
 #ifdef __PROG32



Home | Main Index | Thread Index | Old Index