From owner-cvs-all@FreeBSD.ORG Tue Jul 22 05:03:57 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9524737B401; Tue, 22 Jul 2003 05:03:57 -0700 (PDT) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FDE743F3F; Tue, 22 Jul 2003 05:03:56 -0700 (PDT) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.9/8.12.9) with ESMTP id h6MC3sHo084066; Tue, 22 Jul 2003 13:03:54 +0100 (BST) (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost)h6MC3sff084065; Tue, 22 Jul 2003 13:03:54 +0100 (BST) X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1])h6MC1SZ2060408; Tue, 22 Jul 2003 13:01:28 +0100 (BST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200307221201.h6MC1SZ2060408@grimreaper.grondar.org> To: Bruce Evans In-Reply-To: Your message of "Tue, 22 Jul 2003 21:37:44 +1000." <20030722212644.D7733@gamplex.bde.org> Date: Tue, 22 Jul 2003 13:01:28 +0100 Sender: mark@grondar.org X-Spam-Status: No, hits=0.2 required=5.0 tests=EMAIL_ATTRIBUTION,FROM_NO_LOWER,IN_REP_TO, QUOTED_EMAIL_TEXT,REPLY_WITH_QUOTES version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/getconf getconf.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2003 12:03:57 -0000 Bruce Evans writes: > > Replace an alloca() call with a slightly more standard malloc()/free() > > pair. > > Isn't malloc()/free() more than slightly standard? "Understatement". > Variable-length arrays are more than slightly standard too (they became > standard before getconf) and are well suited to replacing alloca() here. There are very many non-alloca() ways to do this. I chose this way. M -- Mark Murray iumop ap!sdn w,I idlaH