bzero -> memset

This commit is contained in:
thorpej 2001-07-18 16:51:39 +00:00
parent 05b5ee3074
commit c620771702
2 changed files with 6 additions and 6 deletions

View File

@ -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. * Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
* *
@ -203,7 +203,7 @@ ni_getpgs(struct ni_softc *sc, int size, caddr_t *v, paddr_t *p)
if (p) if (p)
*p = seg.ds_addr; *p = seg.ds_addr;
bzero(*v, size); memset(*v, 0, size);
} }
static int static int
@ -453,7 +453,7 @@ retry: WAITREG(NI_PCR, PCR_OWN);
msg->nm_len = 18; msg->nm_len = 18;
msg->nm_opcode2 = NI_STPTDB; msg->nm_opcode2 = NI_STPTDB;
ptdb = (struct ni_ptdb *)&msg->nm_text[0]; 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_index = 1;
ptdb->np_fque = 1; ptdb->np_fque = 1;
@ -823,7 +823,7 @@ ni_setup(struct ni_softc *sc)
return; /* What to do? */ return; /* What to do? */
ptdb = (struct ni_ptdb *)&msg->nm_text[0]; 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_opcode = BVP_MSG;
msg->nm_len = 18; msg->nm_len = 18;

View File

@ -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. * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
* All rights reserved. * All rights reserved.
@ -190,7 +190,7 @@ err2: bus_dmamem_unmap(sc->sc_dmat, sc->sc_kdb,
bus_dmamap_destroy(sc->sc_dmat, sc->sc_cmap); bus_dmamap_destroy(sc->sc_dmat, sc->sc_cmap);
goto err2; 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_mc = &kdb_mscp_ctlr;
ma.ma_type = MSCPBUS_DISK|MSCPBUS_KDB; ma.ma_type = MSCPBUS_DISK|MSCPBUS_KDB;