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 Change the bcopy's to structure ass...



details:   https://anonhg.NetBSD.org/src/rev/555afd15536a
branches:  trunk
changeset: 510390:555afd15536a
user:      matt <matt%NetBSD.org@localhost>
date:      Mon May 28 00:12:21 2001 +0000

description:
Change the bcopy's to structure assignments.

diffstat:

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

diffs (27 lines):

diff -r 8f45c4a2e8b0 -r 555afd15536a sys/arch/powerpc/powerpc/sig_machdep.c
--- a/sys/arch/powerpc/powerpc/sig_machdep.c    Sun May 27 23:52:41 2001 +0000
+++ b/sys/arch/powerpc/powerpc/sig_machdep.c    Mon May 28 00:12:21 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sig_machdep.c,v 1.4 2000/12/22 22:58:55 jdolecek Exp $ */
+/*     $NetBSD: sig_machdep.c,v 1.5 2001/05/28 00:12:21 matt Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -75,7 +75,7 @@
        frame.sf_code = code;
 
        /* Save register context. */
-       bcopy(tf, &frame.sf_sc.sc_frame, sizeof *tf);
+       frame.sf_sc.sc_frame = *tf;
 
        /* Save signal stack. */
        frame.sf_sc.sc_onstack = p->p_sigctx.ps_sigstk.ss_flags & SS_ONSTACK;
@@ -145,7 +145,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