From 99d36c423e25326ecfb5081be856b8be5e1815c2 Mon Sep 17 00:00:00 2001 From: hexkyz Date: Tue, 18 Sep 2018 16:39:18 +0000 Subject: [PATCH] fusee: Add missing const qualifiers (thanks @aveao) --- fusee/fusee-primary/src/lib/lz.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fusee/fusee-primary/src/lib/lz.c b/fusee/fusee-primary/src/lib/lz.c index 564d480ad..e62e02d15 100644 --- a/fusee/fusee-primary/src/lib/lz.c +++ b/fusee/fusee-primary/src/lib/lz.c @@ -99,8 +99,8 @@ * _LZ_StringCompare() - Return maximum length string match. *************************************************************************/ -static unsigned int _LZ_StringCompare( unsigned char * str1, - unsigned char * str2, unsigned int minlen, unsigned int maxlen ) +static unsigned int _LZ_StringCompare( const unsigned char * str1, + const unsigned char * str2, unsigned int minlen, unsigned int maxlen ) { unsigned int len; @@ -195,7 +195,7 @@ int LZ_Compress( const unsigned char *in, unsigned char *out, unsigned int insiz unsigned int maxoffset, offset, bestoffset; unsigned int maxlength, length, bestlength; unsigned int histogram[ 256 ]; - unsigned char *ptr1, *ptr2; + const unsigned char *ptr1, *ptr2; /* Do we have anything to compress? */ if( insize < 1 )