From owner-freebsd-ports Thu Mar 1 8:48:57 2001 Delivered-To: freebsd-ports@freebsd.org Received: from winston.osd.bsdi.com (winston.osd.bsdi.com [204.216.27.229]) by hub.freebsd.org (Postfix) with ESMTP id BEC2937B71A; Thu, 1 Mar 2001 08:48:54 -0800 (PST) (envelope-from jkh@osd.bsdi.com) Received: from localhost (jkh@localhost [127.0.0.1]) by winston.osd.bsdi.com (8.11.2/8.11.1) with ESMTP id f21GmIH05718; Thu, 1 Mar 2001 08:48:18 -0800 (PST) (envelope-from jkh@osd.bsdi.com) To: sobomax@FreeBSD.org Cc: rooneg@electricjellyfish.net, ports@FreeBSD.org, jhk@FreeBSD.org, gad@FreeBSD.org, reg@FreeBSD.org Subject: Re: [patch] which package functionality for pkg_info In-Reply-To: <3A9E500C.4709EB8@FreeBSD.org> References: <20010227220553.A75036@electricjellyfish.net> <20010228192345.A11065@electricjellyfish.net> <3A9E500C.4709EB8@FreeBSD.org> X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010301084818F.jkh@osd.bsdi.com> Date: Thu, 01 Mar 2001 08:48:18 -0800 From: Jordan Hubbard X-Dispatcher: imput version 20000228(IM140) Lines: 11 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org From: Maxim Sobolev Subject: Re: [patch] which package functionality for pkg_info Date: Thu, 01 Mar 2001 15:35:08 +0200 > 2. Use ordinary malloc(...) instead of calloc(1, ...); malloc() doesn't zero memory the way calloc() does, and I suspect that was his intention for a number of the allocations. No reason to do a malloc/bzero when you can do it in one operation. - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message