summaryrefslogtreecommitdiff
path: root/Utilities/cmliblzma/liblzma/delta/delta_common.c
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2014-07-13 22:21:58 +0200
committerBrad King <brad.king@kitware.com>2014-07-29 08:44:36 -0400
commit7a92eddbcb2b2e6419062538e346908f0e502586 (patch)
treeb1985ad4a8904211f12cb07742a9d776fa28152f /Utilities/cmliblzma/liblzma/delta/delta_common.c
parentb2a07ca49c66665f5b51b592f44ecc4f66c7556b (diff)
downloadcmake-7a92eddbcb2b2e6419062538e346908f0e502586.tar.gz
liblzma: Port from C99 to C89/90
Remove use of designated initializers and declarations of variables after statements. Leave "//" comments as-is for now.
Diffstat (limited to 'Utilities/cmliblzma/liblzma/delta/delta_common.c')
-rw-r--r--Utilities/cmliblzma/liblzma/delta/delta_common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Utilities/cmliblzma/liblzma/delta/delta_common.c b/Utilities/cmliblzma/liblzma/delta/delta_common.c
index 930ad21513..803e674a1e 100644
--- a/Utilities/cmliblzma/liblzma/delta/delta_common.c
+++ b/Utilities/cmliblzma/liblzma/delta/delta_common.c
@@ -27,6 +27,8 @@ extern lzma_ret
lzma_delta_coder_init(lzma_next_coder *next, lzma_allocator *allocator,
const lzma_filter_info *filters)
{
+ const lzma_options_delta *opt;
+
// Allocate memory for the decoder if needed.
if (next->coder == NULL) {
next->coder = lzma_alloc(sizeof(lzma_coder), allocator);
@@ -43,7 +45,7 @@ lzma_delta_coder_init(lzma_next_coder *next, lzma_allocator *allocator,
return LZMA_OPTIONS_ERROR;
// Set the delta distance.
- const lzma_options_delta *opt = filters[0].options;
+ opt = filters[0].options;
next->coder->distance = opt->dist;
// Initialize the rest of the variables.