From: Eyal Lebedinsky <eyal@eyal.emu.id.au>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Linus Torvalds <torvalds@osdl.com>
Subject: Re: [PATCH] Really *do* nothing in while loop [OT - style]
Date: Sun, 08 May 2005 23:18:41 +1000 [thread overview]
Message-ID: <427E11B1.3060005@eyal.emu.id.au> (raw)
In-Reply-To: <20050508093440.GA9873@cip.informatik.uni-erlangen.de>
Thomas Glanzmann wrote:
> [PATCH] Really *do* nothing in while loop
>
> Signed-Off-by: Thomas Glanzmann <sithglan@stud.uni-erlangen.de>
>
> --- a/sha1_file.c
> +++ b/sha1_file.c
> @@ -335,7 +335,7 @@
> stream.next_in = hdr;
> stream.avail_in = hdrlen;
> while (deflate(&stream, 0) == Z_OK)
> - /* nothing */
> + /* nothing */;
I am explicitly ignoring the core subject on this thread. This
is a side note, regarding coding style.
I always use a common format for an empty body:
while (deflate(&stream, 0) == Z_OK)
{}
It stands out and positively says what is meant. As such it
makes it much more readable.
I think that CodingStyle should provide guidance for empty
bodies.
--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>
attach .zip as .dat
prev parent reply other threads:[~2005-05-08 13:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-08 9:34 [PATCH] Really *do* nothing in while loop Thomas Glanzmann
2005-05-08 9:48 ` Michael Tokarev
2005-05-08 11:18 ` Thomas Glanzmann
2005-05-08 11:20 ` James Purser
2005-05-08 11:33 ` jdow
2005-05-08 11:40 ` Michael Tokarev
2005-05-08 21:08 ` Junio C Hamano
2005-05-08 21:43 ` J.A. Magallon
2005-05-08 13:18 ` Eyal Lebedinsky [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=427E11B1.3060005@eyal.emu.id.au \
--to=eyal@eyal.emu.id.au \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®