diff options
author | Stefan Reinauer <stepan@openbios.org> | 2006-05-04 10:08:04 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2006-05-04 10:08:04 +0000 |
commit | ab4f5d0c10b23021608eaec56836a7d063837f3f (patch) | |
tree | ccfea21609a30daded72f2e6ef416c006a70664f /src/lib/nrv2b.c | |
parent | 7ac38a33f630112bc2b4caa35162a540afaa2d09 (diff) | |
download | coreboot-ab4f5d0c10b23021608eaec56836a7d063837f3f.tar.xz |
fix the tree
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2296 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/lib/nrv2b.c')
-rw-r--r-- | src/lib/nrv2b.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/nrv2b.c b/src/lib/nrv2b.c index e9d6ebf8b0..e9956cfcfa 100644 --- a/src/lib/nrv2b.c +++ b/src/lib/nrv2b.c @@ -29,7 +29,7 @@ #define GETBIT(bb, src, ilen) GETBIT_LE32(bb, src, ilen) #endif -static unsigned long unrv2b(uint8_t * src, uint8_t * dst, unsigned long *ilen_p) +static unsigned long unrv2b(uint8_t * src, uint8_t * dst) { unsigned long ilen = 0, olen = 0, last_m_off = 1; uint32_t bb = 0; @@ -38,8 +38,8 @@ static unsigned long unrv2b(uint8_t * src, uint8_t * dst, unsigned long *ilen_p) // skip length src += 4; + /* FIXME: check olen with the length stored in first 4 bytes */ - /* FIXME: check olen with len on first 4 bytes */ for (;;) { unsigned int m_off, m_len; while (GETBIT(bb, src, ilen)) { @@ -77,8 +77,6 @@ static unsigned long unrv2b(uint8_t * src, uint8_t * dst, unsigned long *ilen_p) } while (--m_len > 0); } - *ilen_p = ilen; - return olen; } |