diff options
author | Francois Perrad <francois.perrad@gadz.org> | 2017-08-19 17:16:13 +0200 |
---|---|---|
committer | Francois Perrad <francois.perrad@gadz.org> | 2017-08-19 17:16:13 +0200 |
commit | 89e64c631ec8dee41ec4de888548d36887b6ec98 (patch) | |
tree | 91fc3aee54e9b9cac7ec893ddf91cb944e3fc220 /packet.c | |
parent | 468656b4aab5bc0040e3ecbfd7f66f52a15da76d (diff) |
Pointer parameter could be declared as pointing to const
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -49,7 +49,7 @@ static int checkmac(void); #define ZLIB_COMPRESS_EXPANSION (((RECV_MAX_PAYLOAD_LEN/16384)+1)*5 + 6) #define ZLIB_DECOMPRESS_INCR 1024 #ifndef DISABLE_ZLIB -static buffer* buf_decompress(buffer* buf, unsigned int len); +static buffer* buf_decompress(const buffer* buf, unsigned int len); static void buf_compress(buffer * dest, buffer * src, unsigned int len); #endif @@ -367,7 +367,7 @@ static int checkmac() { #ifndef DISABLE_ZLIB /* returns a pointer to a newly created buffer */ -static buffer* buf_decompress(buffer* buf, unsigned int len) { +static buffer* buf_decompress(const buffer* buf, unsigned int len) { int result; buffer * ret; |