style(9) sweep on config(8)

Chris Pressey cpressey at catseye.mine.nu
Thu Mar 4 17:25:00 PST 2004


On Fri, 5 Mar 2004 01:39:14 +0100
Joerg Sonnenberger <joerg at xxxxxxxxxxxxxxxxx> wrote:

> On Thu, Mar 04, 2004 at 07:04:04PM -0500, Dave Cuthbert wrote:
> > Chris Pressey wrote:
> > >	o  Use memset(ptr, 0, size) instead of bzero(ptr, size)
> > 
> > Is there a reason why uses of bzero() should be changed to memset()?
> 
> For the kernel, using bzero is fine. For the userland bzero is BSD
> specific function, while memset is ISO C89.

Well... you could say that config(8) is BSD specific, too.  *shrug*

I just didn't think it was good style to have half the memory-zeroing
calls be to memset, while the other half were to bzero!  :)

-Chris





More information about the Submit mailing list