Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/newsmips/stand/boot bzero() -> memset()



details:   https://anonhg.NetBSD.org/src/rev/ce145c51952b
branches:  trunk
changeset: 525572:ce145c51952b
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Apr 13 07:34:17 2002 +0000

description:
bzero() -> memset()

diffstat:

 sys/arch/newsmips/stand/boot/boot.c       |  4 ++--
 sys/arch/newsmips/stand/boot/netif_news.c |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 8e3232305966 -r ce145c51952b sys/arch/newsmips/stand/boot/boot.c
--- a/sys/arch/newsmips/stand/boot/boot.c       Sat Apr 13 04:14:21 2002 +0000
+++ b/sys/arch/newsmips/stand/boot/boot.c       Sat Apr 13 07:34:17 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.7 2002/04/13 02:43:44 tsutsui Exp $ */
+/*     $NetBSD: boot.c,v 1.8 2002/04/13 07:34:17 tsutsui Exp $ */
 
 /*-
  * Copyright (C) 1999 Tsubai Masanari.  All rights reserved.
@@ -66,7 +66,7 @@
        struct btinfo_systype bi_sys;
 
        /* Clear BSS. */
-       bzero(_edata, _end - _edata);
+       memset(_edata, 0, _end - _edata);
 
        /*
         * XXX a3 contains:
diff -r 8e3232305966 -r ce145c51952b sys/arch/newsmips/stand/boot/netif_news.c
--- a/sys/arch/newsmips/stand/boot/netif_news.c Sat Apr 13 04:14:21 2002 +0000
+++ b/sys/arch/newsmips/stand/boot/netif_news.c Sat Apr 13 07:34:17 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netif_news.c,v 1.2 1999/12/23 06:52:31 tsubai Exp $    */
+/*     $NetBSD: netif_news.c,v 1.3 2002/04/13 07:34:18 tsutsui Exp $   */
 
 /*
  * Copyright (c) 1995 Gordon W. Ross
@@ -87,7 +87,7 @@
                errno = ENFILE;
                return (-1);
        }
-       bzero(io, sizeof(*io));
+       memset(io, 0, sizeof(*io));
 
        netif_prom.nif_devdata = pd;
        io->io_netif = &netif_prom;



Home | Main Index | Thread Index | Old Index