Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jul 2003 13:01:28 +0100
From:      Mark Murray <mark@grondar.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/getconf getconf.c 
Message-ID:  <200307221201.h6MC1SZ2060408@grimreaper.grondar.org>
In-Reply-To: Your message of "Tue, 22 Jul 2003 21:37:44 %2B1000." <20030722212644.D7733@gamplex.bde.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
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



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