From owner-cvs-all Thu May 16 22:12:43 2002 Delivered-To: cvs-all@freebsd.org Received: from durham-ar1-4-64-252-019.durham.dsl-verizon.net (durham-ar1-4-64-252-019.durham.dsl-verizon.net [4.64.252.19]) by hub.freebsd.org (Postfix) with SMTP id C823737B40D for ; Thu, 16 May 2002 22:12:33 -0700 (PDT) Received: (qmail 4640 invoked by uid 1001); 17 May 2002 05:13:07 -0000 Date: Fri, 17 May 2002 05:13:07 +0000 From: "J. Mallett" To: "J. Mallett" Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/find function.c src/usr.bin/finger util.c src/usr.bin/last last.c src/usr.bin/paste paste.c src/usr.bin/tset map.c src/usr.bin/tsort tsort.c Message-ID: <20020517051306.GA32094@FreeBSD.ORG> References: <200205170511.g4H5B8731212@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200205170511.g4H5B8731212@freefall.freebsd.org> User-Agent: Mutt/1.3.27i Organisation: The FreeBSD Project Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, May 16, 2002 at 10:11:08PM -0700, J. Mallett wrote: > jmallett 2002/05/16 22:11:08 PDT > > Modified files: > usr.bin/find function.c > usr.bin/finger util.c > usr.bin/last last.c > usr.bin/paste paste.c > usr.bin/tset map.c > usr.bin/tsort tsort.c > Log: > Clean up malloc(3)'s argument. Remove casts which do nothing when we're > using sizeof() anyway. Use slightly more consistent (per-file) error > reporting for malloc(3) returning NULL. If "malloc failed" was being printed, > don't use err(3). If a NULL format is being used, use err(3). In one case > errx(3) was being used with strerror(3), so just use err(3). I checked these with WARNS=4 on ref5 and beast. -- jmallett@FreeBSD.org | C, MIPS, POSIX, UNIX, BSD, IRC Geek. http://www.FreeBSD.org | The Power to Serve Vote for me for FreeBSD core or the cute little bunny gets it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message