Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/bi bzero -> memset
details: https://anonhg.NetBSD.org/src/rev/2ef525e989c3
branches: trunk
changeset: 512867:2ef525e989c3
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Jul 18 16:51:39 2001 +0000
description:
bzero -> memset
diffstat:
sys/dev/bi/if_ni.c | 8 ++++----
sys/dev/bi/kdb.c | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r dcb72896fc40 -r 2ef525e989c3 sys/dev/bi/if_ni.c
--- a/sys/dev/bi/if_ni.c Wed Jul 18 16:50:27 2001 +0000
+++ b/sys/dev/bi/if_ni.c Wed Jul 18 16:51:39 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ni.c,v 1.11 2001/06/03 15:15:02 ragge Exp $ */
+/* $NetBSD: if_ni.c,v 1.12 2001/07/18 16:51:39 thorpej Exp $ */
/*
* Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
*
@@ -203,7 +203,7 @@
if (p)
*p = seg.ds_addr;
- bzero(*v, size);
+ memset(*v, 0, size);
}
static int
@@ -453,7 +453,7 @@
msg->nm_len = 18;
msg->nm_opcode2 = NI_STPTDB;
ptdb = (struct ni_ptdb *)&msg->nm_text[0];
- bzero(ptdb, sizeof(struct ni_ptdb));
+ memset(ptdb, 0, sizeof(struct ni_ptdb));
ptdb->np_index = 1;
ptdb->np_fque = 1;
@@ -823,7 +823,7 @@
return; /* What to do? */
ptdb = (struct ni_ptdb *)&msg->nm_text[0];
- bzero(ptdb, sizeof(struct ni_ptdb));
+ memset(ptdb, 0, sizeof(struct ni_ptdb));
msg->nm_opcode = BVP_MSG;
msg->nm_len = 18;
diff -r dcb72896fc40 -r 2ef525e989c3 sys/dev/bi/kdb.c
--- a/sys/dev/bi/kdb.c Wed Jul 18 16:50:27 2001 +0000
+++ b/sys/dev/bi/kdb.c Wed Jul 18 16:51:39 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kdb.c,v 1.24 2001/06/04 21:31:28 ragge Exp $ */
+/* $NetBSD: kdb.c,v 1.25 2001/07/18 16:51:39 thorpej Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
* All rights reserved.
@@ -190,7 +190,7 @@
bus_dmamap_destroy(sc->sc_dmat, sc->sc_cmap);
goto err2;
}
- bzero(sc->sc_kdb, sizeof(struct mscp_pack));
+ memset(sc->sc_kdb, 0, sizeof(struct mscp_pack));
ma.ma_mc = &kdb_mscp_ctlr;
ma.ma_type = MSCPBUS_DISK|MSCPBUS_KDB;
Home |
Main Index |
Thread Index |
Old Index