From b53a73ef7726ccbaea73cb560b6f72cdb166eb50 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 11 Feb 2013 20:43:45 -0800 Subject: libpayload: Make the source for lzma decompression const Change-Id: I9a16331dedc97f17af94bf2cf535a9c93d1729a0 Signed-off-by: Gabe Black Reviewed-on: http://review.coreboot.org/2667 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones Reviewed-by: Patrick Georgi --- payloads/libpayload/include/lzma.h | 2 +- payloads/libpayload/liblzma/lzma.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'payloads/libpayload') diff --git a/payloads/libpayload/include/lzma.h b/payloads/libpayload/include/lzma.h index 5be6f43935..818c16da1e 100644 --- a/payloads/libpayload/include/lzma.h +++ b/payloads/libpayload/include/lzma.h @@ -35,6 +35,6 @@ * * returns the decompressed size, or 0 on error */ -unsigned long ulzma(unsigned char *src, unsigned char *dst); +unsigned long ulzma(const unsigned char *src, unsigned char *dst); #endif diff --git a/payloads/libpayload/liblzma/lzma.c b/payloads/libpayload/liblzma/lzma.c index fdda30d8c4..73c499a826 100644 --- a/payloads/libpayload/liblzma/lzma.c +++ b/payloads/libpayload/liblzma/lzma.c @@ -14,7 +14,7 @@ #include #include "lzmadecode.c" -unsigned long ulzma(unsigned char * src, unsigned char * dst) +unsigned long ulzma(const unsigned char * src, unsigned char * dst) { unsigned char properties[LZMA_PROPERTIES_SIZE]; UInt32 outSize; -- cgit v1.2.3