Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/powerpc Use structure assignment instead of...



details:   https://anonhg.NetBSD.org/src/rev/7a3569c9a6cc
branches:  trunk
changeset: 510391:7a3569c9a6cc
user:      matt <matt%NetBSD.org@localhost>
date:      Mon May 28 00:15:10 2001 +0000

description:
Use structure assignment instead of bcopy.

diffstat:

 sys/arch/powerpc/powerpc/compat_13_machdep.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 555afd15536a -r 7a3569c9a6cc sys/arch/powerpc/powerpc/compat_13_machdep.c
--- a/sys/arch/powerpc/powerpc/compat_13_machdep.c      Mon May 28 00:12:21 2001 +0000
+++ b/sys/arch/powerpc/powerpc/compat_13_machdep.c      Mon May 28 00:15:10 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_13_machdep.c,v 1.2 2000/12/22 22:58:55 jdolecek Exp $   */
+/*     $NetBSD: compat_13_machdep.c,v 1.3 2001/05/28 00:15:10 matt Exp $       */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -67,7 +67,7 @@
        tf = trapframe(p);
        if ((sc.sc_frame.srr1 & PSL_USERSTATIC) != (tf->srr1 & PSL_USERSTATIC))
                return (EINVAL);
-       bcopy(&sc.sc_frame, tf, sizeof *tf);
+       *tf = sc.sc_frame;
 
        /* Restore signal stack. */
        if (sc.sc_onstack & SS_ONSTACK)



Home | Main Index | Thread Index | Old Index