1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-22 11:56:40 +00:00

fusee: Add missing const qualifiers (thanks @aveao)

This commit is contained in:
hexkyz 2018-09-18 16:39:18 +00:00 committed by GitHub
parent f864b0835d
commit 99d36c423e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 )