Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2001 09:21:50 +1000
From:      Peter Jeremy <peter.jeremy@alcatel.com.au>
To:        Warner Losh <imp@harmony.village.org>
Cc:        audit@FreeBSD.ORG
Subject:   Re: Config patch to stable.
Message-ID:  <20010627092150.Q95583@gsmx07.alcatel.com.au>
In-Reply-To: <200106262308.f5QN8gU11078@harmony.village.org>; from imp@harmony.village.org on Tue, Jun 26, 2001 at 05:08:42PM -0600
References:  <XFMail.20010626225642.mheffner@novacoxmail.com> <200106262308.f5QN8gU11078@harmony.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2001-Jun-26 17:08:42 -0600, Warner Losh <imp@harmony.village.org> wrote:
>In message <XFMail.20010626225642.mheffner@novacoxmail.com> Mike Heffner writes:
>: Looks good. Why did you add braces to the single statement `else'?
>
>Because if you have braces on one part of an if statement, you need
>them on both parts.

Not according to style(9):
        if (test)
                stmt;
        else if (bar) {
                stmt;
                stmt;
        } else
                stmt;

Peter

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




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