* [PATCH 1/5] x86: fix integer as NULL pointer warning
@ 2008-05-22 22:45 Harvey Harrison
0 siblings, 0 replies; only message in thread
From: Harvey Harrison @ 2008-05-22 22:45 UTC (permalink / raw)
To: Ingo Molnar, Linus Torvalds; +Cc: LKML, Andrew Morton
arch/x86/boot/printf.c:59:10: warning: Using plain integer as NULL pointer
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
arch/x86/boot/printf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/boot/printf.c b/arch/x86/boot/printf.c
index c1d00c0..50e47cd 100644
--- a/arch/x86/boot/printf.c
+++ b/arch/x86/boot/printf.c
@@ -56,7 +56,7 @@ static char *number(char *str, long num, int base, int size, int precision,
if (type & LEFT)
type &= ~ZEROPAD;
if (base < 2 || base > 36)
- return 0;
+ return NULL;
c = (type & ZEROPAD) ? '0' : ' ';
sign = 0;
if (type & SIGN) {
--
1.5.5.1.579.g4e43
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-22 22:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-22 22:45 [PATCH 1/5] x86: fix integer as NULL pointer warning Harvey Harrison
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.