Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jul 2003 21:37:44 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Mark Murray <markm@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/getconf getconf.c
Message-ID:  <20030722212644.D7733@gamplex.bde.org>
In-Reply-To: <200307212055.h6LKtc3l064104@repoman.freebsd.org>
References:  <200307212055.h6LKtc3l064104@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 21 Jul 2003, Mark Murray wrote:

> markm       2003/07/21 13:55:38 PDT
>
>   FreeBSD src repository
>
>   Modified files:
>     usr.bin/getconf      getconf.c
>   Log:
>   Replace an alloca() call with a slightly more standard malloc()/free()
>   pair.

Isn't malloc()/free() more than slightly standard?

Variable-length arrays are more than slightly standard too (they became
standard before getconf) and are well suited to replacing alloca() here.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030722212644.D7733>