Usually it's not only cleaner, it's what you want to do... AFAIK
'NULL' is implemented/defined by the compiler, so if you've got a
compiler which defines NULL otherwise than( a pointer to) zero you're
screwed. ;)
//Markus
On 27 Jul, 2007, at 11:45 , Yoann Padioleau wrote:
When
Usually it's not only cleaner, it's what you want to do... AFAIK
'NULL' is implemented/defined by the compiler, so if you've got a
compiler which defines NULL otherwise than( a pointer to) zero you're
screwed. ;)
//Markus
On 27 Jul, 2007, at 11:45 , Yoann Padioleau wrote:
When
On Fri, Jul 27, 2007 at 11:45:00AM +0200, Yoann Padioleau wrote:
Applied.
Ralf
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
When comparing a pointer, it's clearer to compare it to NULL than to 0.
Here is an excerpt of the semantic patch:
@@
expression *E;
@@
E ==
- 0
+ NULL
@@
expression *E;
@@
E !=
- 0
+ NULL
Signed-off-by: Yoann Padioleau <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Cc:
On Fri, Jul 27, 2007 at 11:45:00AM +0200, Yoann Padioleau wrote:
Applied.
Ralf
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
When comparing a pointer, it's clearer to compare it to NULL than to 0.
Here is an excerpt of the semantic patch:
@@
expression *E;
@@
E ==
- 0
+ NULL
@@
expression *E;
@@
E !=
- 0
+ NULL
Signed-off-by: Yoann Padioleau [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Cc:
6 matches
Mail list logo