Gang Wang wrote:
Yes. but funny that you invoked FD_ZERO() for sd_readers and
You are assuming the semantics of FD_ZERO() is to "set something as
zero", but on some system it is not. For example, implement fd_set as an
array, then 0 is a valid value. FD_ZERO() have to initialize something
as -1 ...
Funny that the code treat sd_actives differently.
That's a different question than you asked at first.
BTW, I know C spec well.
Then you should know your original question has no dependency on the
compiler being used. Rather than waste people's time, you should ask
your actual question at the outset, not some meaningless one.
On 12/1/06, *Howard Chu* <hyc(a)symas.com <mailto:firstname.lastname@example.org>> wrote:
wanggang.wang(a)gmail.com <mailto:email@example.com> wrote:
> Full_Name: Gang Wang
> Version: 2.3.20
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) ( 220.127.116.11 <http://18.104.22.168
> There is one declaration in slap_daemon structure:
> fd_set sd_actives;
> this variable is not initialized ... is this OK with all compilers?
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
OpenLDAP Core Team http://www.openldap.org/project/