Subject: Re: CVS commit: basesrc/sbin/newfs
To: Luke Mewburn <lukem@netbsd.org>
From: Jason R Thorpe <thorpej@zembu.com>
List: source-changes
Date: 07/26/2001 10:26:58
On Thu, Jul 26, 2001 at 07:53:39PM +0300, Luke Mewburn wrote:

 > Module Name:	basesrc
 > Committed By:	lukem
 > Date:		Thu Jul 26 16:53:39 UTC 2001
 > 
 > Modified Files:
 > 	basesrc/sbin/newfs: mkfs.c
 > 
 > Log Message:
 > - check return value of calloc() in mkfs()
 > - in replacement malloc(), if sbrk(2) returns (void *)-1, convert to NULL
 >   before returning
 > - in replacement calloc(), check return value of malloc() before zeroing result

Why does newfs have its own malloc/calloc at all in the first place?

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>