ANSIfy and some KNF.

This commit is contained in:
tsutsui 2007-12-29 16:54:49 +00:00
parent 8021ef3f6c
commit c3a9c74a16
1 changed files with 6 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: zalloc.c,v 1.4 2006/01/25 18:27:23 christos Exp $ */
/* $NetBSD: zalloc.c,v 1.5 2007/12/29 16:54:49 tsutsui Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -46,24 +46,20 @@
*/
voidpf
zcalloc(opaque, items, size)
voidpf opaque;
unsigned items;
unsigned size;
zcalloc(voidpf opaque, unsigned int items, unsigned int size)
{
unsigned totalsize;
unsigned int totalsize;
totalsize = items * size;
opaque = alloc(totalsize);
if (opaque != NULL)
bzero(opaque, totalsize);
return(opaque);
return opaque;
}
void
zcfree(opaque, ptr)
voidpf opaque;
voidpf ptr;
zcfree(voidpf opaque, voidpf ptr)
{
dealloc(ptr, 0); /* XXX: size not known */
}