From 91e9f27973aba1988b32e694add144ab852dfece Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Sun, 26 Jan 2014 22:55:01 -0600 Subject: 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 Reviewed-on: http://review.coreboot.org/4834 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- util/cbfstool/lzma/lzma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/cbfstool/lzma/lzma.c') diff --git a/util/cbfstool/lzma/lzma.c b/util/cbfstool/lzma/lzma.c index 579784eae0..f889946690 100644 --- a/util/cbfstool/lzma/lzma.c +++ b/util/cbfstool/lzma/lzma.c @@ -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); -- cgit v1.2.3