cbfstool/lzma: Use stdint and stdbool types
This is the first patch on a long road to refactor and fix the lzma code in cbfstool. I want to submit it in small atomic patches, so that any potential errors are easy to spot before it's too late. Change-Id: Ib557f8c83f49f18488639f38bf98d3ce849e61af Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/4834 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
@@ -186,9 +186,9 @@ void do_lzma_uncompress(char *dst, int dst_len, char *src, int src_len)
|
||||
size_t destlen = out_sizemax;
|
||||
size_t srclen = src_len - (LZMA_PROPS_SIZE + 8);
|
||||
|
||||
int res = LzmaDecode((Byte *) dst, &destlen,
|
||||
(Byte *) &src[LZMA_PROPS_SIZE + 8], &srclen,
|
||||
(Byte *) &src[0], LZMA_PROPS_SIZE,
|
||||
int res = LzmaDecode((uint8_t *) dst, &destlen,
|
||||
(uint8_t *) &src[LZMA_PROPS_SIZE + 8], &srclen,
|
||||
(uint8_t *) &src[0], LZMA_PROPS_SIZE,
|
||||
LZMA_FINISH_END,
|
||||
&status,
|
||||
&LZMAalloc);
|
||||
|
Reference in New Issue
Block a user