Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 May 2005 12:24:54 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Xu Qiang <Qiang.Xu@fujixerox.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: The availability of socketbits.h?
Message-ID:  <20050518092453.GA3537@orion.daedalusnetworks.priv>
In-Reply-To: <20050518031812.34AF31D92E@imss.sgp.fujixerox.com>
References:  <20050518031812.34AF31D92E@imss.sgp.fujixerox.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-05-18 11:27, Xu Qiang <Qiang.Xu@fujixerox.com> wrote:
>Dan Nelson wrote:
>> That for loop should really read:
>>
>>   for(i=0; i<command_count; i++) {
>>
>> , since command_count should already be set to COUNTOF(command_list)
>> by a previous call to command_init().
>
> Thank you, Dan. Your fix works!
>
> Still, I wonder why the fix of Giorgos doesn't work, because it seems
> quite right to me, too.

If you refer to the addition of a zero-filled entry at the end of the
array, it's not a fix.  Just a description of what the buggy loop seems
to expect.  The rest of the program works differently, so it definitely
won't work as a "fix".

> (Btw, I can't understand why this software has so many bugs to be
> fixed before it can be compiled and run successfully. The developers
> don't check their product before shipping out?

Obviously, no.  They should be hit hard on the head with a copy of
"Extreme Programming Explained" :P



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