diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2008-11-30 11:54:01 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2008-11-30 11:54:01 +0000 |
commit | bf0c6b1c3821a7a1f96a213a4c2d4e7b3b20e516 (patch) | |
tree | f0f4b21e84c82d47bef35662bd4a489d315944eb /kernel | |
parent | c52d26b9765804166b3c8cdbd11b77a96f9879b1 (diff) | |
download | qemu-openbios-bf0c6b1c3821a7a1f96a213a4c2d4e7b3b20e516.tar.gz |
Fix most warnings from Sparse
git-svn-id: svn://coreboot.org/openbios/openbios-devel@274 f158a5a8-5612-0410-a976-696ce0be7e32
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/dict.c | 2 | ||||
-rw-r--r-- | kernel/internal.c | 4 |
2 files changed, 3 insertions, 3 deletions
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; |