From: Karel Zak <kzak@redhat.com>
To: "Ángel González" <ingenit@zoho.com>
Cc: Sami Kerola <kerolasa@iki.fi>, util-linux@vger.kernel.org
Subject: Re: [PATCH 1/3] a pointer should not be compared to zero [coccinelle]
Date: Wed, 6 Feb 2013 12:01:19 +0100 [thread overview]
Message-ID: <20130206110006.GD24476@x2.net.home> (raw)
In-Reply-To: <510D99FD.8060608@zoho.com>
On Sat, Feb 02, 2013 at 11:58:05PM +0100, Ángel González wrote:
> On 30/01/13 21:33, Sami Kerola wrote "a pointer should not be compared
> to zero":
> > Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Applied, thanks.
> Why not? It is perfectly legal.
> See http://www.c-faq.com/null/null2.html
It's usually legal from compiler or C standard point of view, but
it's horrible coding style manner.
For example:
http://lwn.net/Articles/93574/
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
next prev parent reply other threads:[~2013-02-06 11:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-30 20:33 [PATCH 1/3] a pointer should not be compared to zero [coccinelle] Sami Kerola
2013-01-30 20:33 ` [PATCH 2/3] translation: unify exec error messages Sami Kerola
2013-02-06 10:53 ` Karel Zak
2013-01-30 20:33 ` [PATCH 3/3] eject: remove a duplicate command name from error message Sami Kerola
2013-02-02 23:00 ` Ángel González
2013-02-06 10:53 ` Karel Zak
2013-02-02 22:58 ` [PATCH 1/3] a pointer should not be compared to zero [coccinelle] Ángel González
2013-02-06 11:01 ` Karel Zak [this message]
2013-02-06 17:47 ` Ángel González
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=20130206110006.GD24476@x2.net.home \
--to=kzak@redhat.com \
--cc=ingenit@zoho.com \
--cc=kerolasa@iki.fi \
--cc=util-linux@vger.kernel.org \
/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