From 714c6dfe476280021013fa0f51875ea935b1d388 Mon Sep 17 00:00:00 2001 From: "josh.macdonald" Date: Sat, 29 Sep 2007 16:32:29 +0000 Subject: Build fix for MSVC++ --- xdelta3/xdelta3-main.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xdelta3') diff --git a/xdelta3/xdelta3-main.h b/xdelta3/xdelta3-main.h index c56bead..6dc6f4b 100644 --- a/xdelta3/xdelta3-main.h +++ b/xdelta3/xdelta3-main.h @@ -2465,7 +2465,8 @@ main_input (xd3_cmd cmd, xoff_t last_total_out = 0; long start_time; int stdout_only = 0; - + int recode_flags; + xd3_config recode_config; int (*input_func) (xd3_stream*); int (*output_func) (xd3_stream*, main_file *); @@ -2533,14 +2534,13 @@ main_input (xd3_cmd cmd, XD3_ASSERT (recode_stream == NULL); recode_stream = (xd3_stream*) main_malloc(sizeof(xd3_stream)); - int recode_flags = (stream_flags & XD3_SEC_TYPE); - // TODO: what about sec_xxxx.ngroups = 1? - - xd3_config recode_config; + recode_flags = (stream_flags & XD3_SEC_TYPE); xd3_init_config(&recode_config, recode_flags); recode_config.alloc = main_alloc; recode_config.freef = main_free1; + + // TODO: what about sec_xxxx.ngroups = 1? recode_config.sec_data.ngroups = 1; recode_config.sec_addr.ngroups = 1; recode_config.sec_inst.ngroups = 1; -- cgit v1.2.3