bzero->memset, bcopy->memcpy

This commit is contained in:
ichiro 2001-07-07 06:29:13 +00:00
parent fe30b5a627
commit cd3fb67f14
4 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sed_saip.c,v 1.5 2001/06/29 17:22:50 toshii Exp $ */
/* $NetBSD: sed_saip.c,v 1.6 2001/07/07 06:29:13 ichiro Exp $ */
/*-
* Copyright (c) 1999-2001
@ -205,7 +205,7 @@ sed1356_init(struct hpcfb_fbconf *fb)
}
/* zero fill */
bzero(fb, sizeof(*fb));
memset(fb, 0, sizeof(*fb));
fb->hf_conf_index = 0; /* configuration index */
fb->hf_nconfs = 1; /* how many configurations */

View File

@ -1,4 +1,4 @@
/* $NetBSD: mem.c,v 1.3 2001/06/29 02:40:28 toshii Exp $ */
/* $NetBSD: mem.c,v 1.4 2001/07/07 06:29:13 ichiro Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -158,7 +158,7 @@ mmrw(dev, uio, flags)
if (zeropage == NULL) {
zeropage = (caddr_t)
malloc(NBPG, M_TEMP, M_WAITOK);
bzero(zeropage, NBPG);
memset(zeropage, 0, NBPG);
}
c = min(iov->iov_len, NBPG);
error = uiomove(zeropage, c, uio);

View File

@ -1,4 +1,4 @@
/* $NetBSD: process_machdep.c,v 1.2 2001/02/28 18:15:44 bjh21 Exp $ */
/* $NetBSD: process_machdep.c,v 1.3 2001/07/07 06:29:13 ichiro Exp $ */
/*
* Copyright (c) 1995 Frank Lancaster. All rights reserved.
@ -95,7 +95,7 @@ process_read_regs(p, regs)
{
struct trapframe *tf = process_frame(p);
bcopy((caddr_t)&tf->tf_r0, (caddr_t)regs->r, sizeof(regs->r));
memcpy((caddr_t)regs->r, (caddr_t)&tf->tf_r0, sizeof(regs->r));
regs->r_sp = tf->tf_usr_sp;
regs->r_lr = tf->tf_usr_lr;
regs->r_pc = tf->tf_pc;
@ -126,7 +126,7 @@ process_write_regs(p, regs)
{
struct trapframe *tf = process_frame(p);
bcopy((caddr_t)regs->r, (caddr_t)&tf->tf_r0, sizeof(regs->r));
memcpy((caddr_t)&tf->tf_r0, (caddr_t)regs->r, sizeof(regs->r));
tf->tf_usr_sp = regs->r_sp;
tf->tf_usr_lr = regs->r_lr;
tf->tf_pc = regs->r_pc;

View File

@ -1,4 +1,4 @@
/* $NetBSD: sa11x0_lcd.c,v 1.5 2001/07/02 13:52:30 ichiro Exp $ */
/* $NetBSD: sa11x0_lcd.c,v 1.6 2001/07/07 06:29:13 ichiro Exp $ */
#define SALCD_DEBUG
/*
@ -216,7 +216,7 @@ salcd_fbinit(fb)
struct hpcfb_fbconf *fb;
{
/* Initialize fb */
bzero(fb, sizeof(*fb));
memset(fb, 0, sizeof(*fb));
fb->hf_conf_index = 0; /* configuration index */
fb->hf_nconfs = 1;