From 3e8bd1d15e417f2d588e9be50ce027ee3d48b2da Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 21 Dec 2014 18:05:03 +0200 Subject: Avoid variable-length arrays in the debug programs. --- debug/full_flush.c | 3 ++- debug/sync_flush.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'debug') diff --git a/debug/full_flush.c b/debug/full_flush.c index 67442b15..227f7376 100644 --- a/debug/full_flush.c +++ b/debug/full_flush.c @@ -14,6 +14,8 @@ #include "lzma.h" #include +#define CHUNK 64 + static lzma_stream strm = LZMA_STREAM_INIT; static FILE *file_in; @@ -22,7 +24,6 @@ static FILE *file_in; static void encode(size_t size, lzma_action action) { - static const size_t CHUNK = 64; uint8_t in[CHUNK]; uint8_t out[CHUNK]; lzma_ret ret; diff --git a/debug/sync_flush.c b/debug/sync_flush.c index fc2ebcb2..22923331 100644 --- a/debug/sync_flush.c +++ b/debug/sync_flush.c @@ -14,6 +14,8 @@ #include "lzma.h" #include +#define CHUNK 64 + static lzma_stream strm = LZMA_STREAM_INIT; static FILE *file_in; @@ -22,7 +24,6 @@ static FILE *file_in; static void encode(size_t size, lzma_action action) { - static const size_t CHUNK = 64; uint8_t in[CHUNK]; uint8_t out[CHUNK]; lzma_ret ret; -- cgit v1.2.3