summaryrefslogtreecommitdiffhomepage
path: root/src/rcore.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2022-02-20 20:35:28 +0100
committerraysan5 <[email protected]>2022-02-20 20:35:28 +0100
commit937e7b3dd92bb8fc2b0cd4a334bd277cbd4b2059 (patch)
tree9f4309595e277b553b2bd64a5a3979e684cd9c02 /src/rcore.c
parent68bad6986dec2469b8222c610b6a94be2092bd0e (diff)
downloadraylib-937e7b3dd92bb8fc2b0cd4a334bd277cbd4b2059.tar.gz
raylib-937e7b3dd92bb8fc2b0cd4a334bd277cbd4b2059.zip
REVIEWED: Some functions input parametes that should be `const`
Diffstat (limited to 'src/rcore.c')
-rw-r--r--src/rcore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 2b0164ee..fc781219 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -3181,7 +3181,7 @@ long GetFileModTime(const char *fileName)
}
// Compress data (DEFLATE algorythm)
-unsigned char *CompressData(unsigned char *data, int dataLength, int *compDataLength)
+unsigned char *CompressData(const unsigned char *data, int dataLength, int *compDataLength)
{
#define COMPRESSION_QUALITY_DEFLATE 8
@@ -3201,7 +3201,7 @@ unsigned char *CompressData(unsigned char *data, int dataLength, int *compDataLe
}
// Decompress data (DEFLATE algorythm)
-unsigned char *DecompressData(unsigned char *compData, int compDataLength, int *dataLength)
+unsigned char *DecompressData(const unsigned char *compData, int compDataLength, int *dataLength)
{
unsigned char *data = NULL;
@@ -3259,7 +3259,7 @@ char *EncodeDataBase64(const unsigned char *data, int dataLength, int *outputLen
}
// Decode Base64 string data
-unsigned char *DecodeDataBase64(unsigned char *data, int *outputLength)
+unsigned char *DecodeDataBase64(const unsigned char *data, int *outputLength)
{
static const unsigned char base64decodeTable[] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,