bcopy -> memcpy, bzero -> memset

This commit is contained in:
fredette 2002-12-13 20:44:44 +00:00
parent 9ab86cb8ae
commit 856e98cd30
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: zs.c,v 1.4 2002/09/27 15:36:53 provos Exp $ */ /* $NetBSD: zs.c,v 1.5 2002/12/13 20:44:44 fredette Exp $ */
/*- /*-
* Copyright (c) 1996 The NetBSD Foundation, Inc. * Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -205,8 +205,8 @@ zs_attach(zsc, zsd, pri)
cs->cs_reg_csr = &zc->zc_csr; cs->cs_reg_csr = &zc->zc_csr;
cs->cs_reg_data = &zc->zc_data; cs->cs_reg_data = &zc->zc_data;
bcopy(zs_init_reg, cs->cs_creg, 16); memcpy(cs->cs_creg, zs_init_reg, 16);
bcopy(zs_init_reg, cs->cs_preg, 16); memcpy(cs->cs_preg, zs_init_reg, 16);
/* XXX: Consult PROM properties for this?! */ /* XXX: Consult PROM properties for this?! */
cs->cs_defspeed = zs_get_speed(cs); cs->cs_defspeed = zs_get_speed(cs);

View File

@ -1,4 +1,4 @@
/* $NetBSD: zs_kgdb.c,v 1.2 2002/09/06 13:18:43 gehenna Exp $ */ /* $NetBSD: zs_kgdb.c,v 1.3 2002/12/13 20:44:44 fredette Exp $ */
/*- /*-
* Copyright (c) 1996 The NetBSD Foundation, Inc. * Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -108,7 +108,7 @@ zs_setparam(cs, iena, rate)
{ {
int s, tconst; int s, tconst;
bcopy(zs_kgdb_regs, cs->cs_preg, 16); memcpy(cs->cs_preg, zs_kgdb_regs, 16);
if (iena) { if (iena) {
cs->cs_preg[1] = ZSWR1_RIE | ZSWR1_SIE; cs->cs_preg[1] = ZSWR1_RIE | ZSWR1_SIE;
@ -150,7 +150,7 @@ zs_kgdb_init()
'a' + (kgdb_dev & 3), kgdb_rate); 'a' + (kgdb_dev & 3), kgdb_rate);
/* Setup temporary chanstate. */ /* Setup temporary chanstate. */
bzero((caddr_t)&cs, sizeof(cs)); memset((caddr_t)&cs, 0, sizeof(cs));
zsd = zs_find_prom(promzs_unit); zsd = zs_find_prom(promzs_unit);
if (zsd == NULL) { if (zsd == NULL) {
printf("zs_kgdb_init: zs not mapped.\n"); printf("zs_kgdb_init: zs not mapped.\n");