INN 2.4.1 urgent release

Dan Hollis goemon at anime.net
Thu Jan 8 01:33:19 UTC 2004


On 7 Jan 2004 dsr+inn at mail.lns.cornell.edu wrote:
> Our local coding standards say to *always* put in the curlies on
> for if, while, for, etc:
> 
>     if (pagesize == -1)
>         syswarn("getpagesize failed");
> 
> doesn't meet our standards, it has to be
> 
>     if (pagesize == -1) {
>         syswarn("getpagesize failed");
>     }
> 
> Some people don't like it, but our experience is that it saves trouble
> later when someone decides to add to the if block.

Its also more readable.

But 15 years of C coding experience teaches one that { } should be 
mandatory. Boggles the mind that people still try to be clever and omit 
them.

-Dan



More information about the inn-workers mailing list