diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2014-12-21 18:05:03 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2014-12-21 18:05:03 +0200 |
commit | 3e8bd1d15e417f2d588e9be50ce027ee3d48b2da (patch) | |
tree | 24ab56f01e3bb183afb2b69803197a218b8b46d6 /debug | |
parent | Build: Include 04_compress_easy_mt.c in the tarball. (diff) | |
download | xz-3e8bd1d15e417f2d588e9be50ce027ee3d48b2da.tar.xz |
Avoid variable-length arrays in the debug programs.
Diffstat (limited to 'debug')
-rw-r--r-- | debug/full_flush.c | 3 | ||||
-rw-r--r-- | debug/sync_flush.c | 3 |
2 files changed, 4 insertions, 2 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; 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 <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; |