From bf0c6b1c3821a7a1f96a213a4c2d4e7b3b20e516 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 30 Nov 2008 11:54:01 +0000 Subject: Fix most warnings from Sparse git-svn-id: svn://coreboot.org/openbios/openbios-devel@274 f158a5a8-5612-0410-a976-696ce0be7e32 --- kernel/dict.c | 2 +- kernel/internal.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'kernel') diff --git a/kernel/dict.c b/kernel/dict.c index 8df807db..99f71223 100644 --- a/kernel/dict.c +++ b/kernel/dict.c @@ -18,7 +18,7 @@ #include "cross.h" -unsigned char *dict = 0; +unsigned char *dict = NULL; ucell *last; cell dicthead = 0; diff --git a/kernel/internal.c b/kernel/internal.c index 9ea0dd80..95463743 100644 --- a/kernel/internal.c +++ b/kernel/internal.c @@ -24,7 +24,7 @@ extern ucell *trampoline; * point behind the pointer. */ static ucell t[] = { DOCOL, 0, (ucell)(t+3), 0 }; -ucell *trampoline = t; +static ucell *trampoline = t; #endif #ifndef CONFIG_DEBUG_INTERPRETER @@ -287,7 +287,7 @@ static void doplusloop(void) #ifndef FCOMPILER static ucell get_myself(void) { - static ucell **myself = 0; + static ucell **myself = NULL; if( !myself ) myself = (ucell**)findword("my-self") + 1; return (*myself && **myself) ? (ucell)**myself : 0; -- cgit v1.2.1