summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Borodin <xformmm@amazon.com>2022-11-10 17:27:30 (GMT)
committerAndrey Borodin <xformmm@amazon.com>2022-11-10 17:27:30 (GMT)
commit812c4b13d62944fef888afe15462087a50bc245b (patch)
tree6b0e0bad5b3e6cf6e2f6ee8a5f7a981733073783
parent214bfb325bd4db112b73859912b919aa35e12d61 (diff)
downloadlz4-812c4b13d62944fef888afe15462087a50bc245b.zip
lz4-812c4b13d62944fef888afe15462087a50bc245b.tar.gz
lz4-812c4b13d62944fef888afe15462087a50bc245b.tar.bz2
Declare read_long_length_no_check() static
Fix #1176
-rw-r--r--lib/lz4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index 8796f78..6f09b73 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -1786,7 +1786,7 @@ typedef enum { decode_full_block = 0, partial_decode = 1 } earlyEnd_directive;
* does not know end of input
* presumes input is well formed
* note : will consume at least one byte */
-size_t read_long_length_no_check(const BYTE** pp)
+static size_t read_long_length_no_check(const BYTE** pp)
{
size_t b, l = 0;
do { b = **pp; (*pp)++; l += b; } while (b==255);