summaryrefslogtreecommitdiff
path: root/util/cbfstool/lzma/lzma.c
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-01-26 22:55:01 -0600
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-01-29 20:04:53 +0100
commit91e9f27973aba1988b32e694add144ab852dfece (patch)
tree0f5cc2a057ca50d668a89a7fdcae44e5bbb4bef6 /util/cbfstool/lzma/lzma.c
parentaa2f739ae87386b8a29068ecfdc2b25bcf4a19ca (diff)
downloadcoreboot-91e9f27973aba1988b32e694add144ab852dfece.tar.xz
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>
Diffstat (limited to 'util/cbfstool/lzma/lzma.c')
-rw-r--r--util/cbfstool/lzma/lzma.c6
1 files changed, 3 insertions, 3 deletions
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);