Skip to contentSkip to conversation

x86: fix integer as NULL pointer warning

PATCH In review Harvey Harrison 1 participant 1 message May 22, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 x86: fix integer as NULL pointer warning

arch/x86/boot/printf.c:59:10: warning: Using plain integer as NULL pointer

---
 arch/x86/boot/printf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/boot/printf.c +1 -1
index c1d00c0..50e47cd 100644
@@ -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) {
Signature · 1 line
1.5.5.1.579.g4e43