Skip to contentSkip to conversation

oprofile: use NULL for pointer

PATCH New Randy.Dunlap 1 participant 1 message Jan 23, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oprofile: use NULL for pointer

Use NULL instead of 0 for pointer:

arch/x86_64/oprofile/../../i386/oprofile/backtrace.c:30:10: warning: Using plain integer as NULL pointer

diffstat:=

 arch/i386/oprofile/backtrace.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
arch/i386/oprofile/backtrace.c renamed from arch/i386/oprofile/backtrace.c~oprofile_null +1 -1
diff -Naurp ./arch/i386/oprofile/backtrace.c~oprofile_null ./arch/i386/oprofile/backtrace.c
@@ -27,7 +27,7 @@ dump_backtrace(struct frame_head * head)
 	/* frame pointers should strictly progress back up the stack
 	 * (towards higher addresses) */
 	if (head >= head->ebp)
-		return 0;
+		return NULL;
 
 	return head->ebp;
 }

--