bzero -> memset

This commit is contained in:
wiz 2001-07-22 15:23:53 +00:00
parent 684d06bac8
commit 6c8f415983
3 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: bus.c,v 1.9 2001/05/26 21:27:06 chs Exp $ */
/* $NetBSD: bus.c,v 1.10 2001/07/22 15:23:53 wiz Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -173,7 +173,7 @@ _bus_dmamap_create(t, size, nsegments, maxsegsz, boundary, flags, dmamp)
(flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL)
return ENOMEM;
bzero(mapstore, mapsize);
memset(mapstore, 0, mapsize);
map = (struct cobalt_bus_dmamap *)mapstore;
map->_dm_size = size;
map->_dm_segcnt = nsegments;

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.33 2001/06/17 00:11:41 cyber Exp $ */
/* $NetBSD: machdep.c,v 1.34 2001/07/22 15:23:53 wiz Exp $ */
/*
* Copyright (c) 2000 Soren S. Jorvang. All rights reserved.
@ -140,7 +140,7 @@ mach_init(memsize)
esym = end;
esym += ((Elf_Ehdr *)end)->e_entry;
kernend = (caddr_t)mips_round_page(esym);
bzero(edata, end - edata);
memset(edata, 0, end - edata);
} else
#endif
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.1 2001/05/09 15:58:07 matt Exp $ */
/* $NetBSD: autoconf.c,v 1.2 2001/07/22 15:26:11 wiz Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@ -272,7 +272,7 @@ cninit(void)
goto nocons;
node = OF_instance_to_package(stdout);
bzero(type, sizeof(type));
memset(type, 0, sizeof(type));
if (OF_getprop(node, "device_type", type, sizeof(type)) == -1)
goto nocons;
@ -298,7 +298,7 @@ cninit(void)
}
node = OF_instance_to_package(stdin);
bzero(name, sizeof(name));
memset(name, 0, sizeof(name));
OF_getprop(node, "name", name, sizeof(name));
if (strcmp(name, "keyboard") != 0) {
printf("WARNING: stdin is not a keyboard: %s\n", name);