aboutsummaryrefslogtreecommitdiff
path: root/debug/full_flush.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2014-12-21 18:05:03 +0200
committerLasse Collin <lasse.collin@tukaani.org>2014-12-21 18:05:03 +0200
commit3e8bd1d15e417f2d588e9be50ce027ee3d48b2da (patch)
tree24ab56f01e3bb183afb2b69803197a218b8b46d6 /debug/full_flush.c
parentBuild: Include 04_compress_easy_mt.c in the tarball. (diff)
downloadxz-3e8bd1d15e417f2d588e9be50ce027ee3d48b2da.tar.xz
Avoid variable-length arrays in the debug programs.
Diffstat (limited to 'debug/full_flush.c')
-rw-r--r--debug/full_flush.c3
1 files changed, 2 insertions, 1 deletions
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 <stdio.h>
+#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;