Subject: Re: CVS commit: src/sys/kern
To: None <drochner@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: source-changes
Date: 06/22/2006 20:10:52
> Module Name: src
> Committed By: drochner
> Date: Wed Jun 21 17:16:00 UTC 2006
>
> Modified Files:
> src/sys/kern: subr_callback.c
>
> Log Message:
> zero-init callback_head by memset(). code is 12 bytes shorter
>
>
> To generate a diff of this commit:
> cvs rdiff -r1.2 -r1.3 src/sys/kern/subr_callback.c
fwiw, i intentionally avoided to use memset.
this kind of optimization makes code cryptic, IMO.
please put a comment to say which members are initialized by this memset.
YAMAMOTO Takashi