gcc4 fixes.

git-svn-id: svn://coreboot.org/openbios/openbios-devel@21 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Stefan Reinauer
2006-05-17 12:29:24 +00:00
parent 1985265919
commit 7d4dc57ca1
4 changed files with 50 additions and 25 deletions

View File

@@ -55,6 +55,7 @@ static void* btree_readnode(btree* bt, btree_node_desc* node, void *p)
*/
static void* btree_readhead(btree* bt, btree_head* head, void *p)
{
UInt32 *q;
head->depth = bswabU16_inc(p);
head->root = bswabU32_inc(p);
head->leaf_count = bswabU32_inc(p);
@@ -70,8 +71,10 @@ static void* btree_readhead(btree* bt, btree_head* head, void *p)
head->reserved2 = bswabU8_inc(p);
head->attributes = bswabU32_inc(p);
// skip reserved bytes
((UInt32*) p) += 16;
return p;
q=((UInt32*) p);
// ((UInt32*) p) += 16;
q+=16;
return q;
}
/* Priority of the depth of the node compared to LRU value.