summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3-second.h
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3/xdelta3-second.h')
-rw-r--r--xdelta3/xdelta3-second.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/xdelta3/xdelta3-second.h b/xdelta3/xdelta3-second.h
index 3a91e10..a1fe120 100644
--- a/xdelta3/xdelta3-second.h
+++ b/xdelta3/xdelta3-second.h
@@ -19,9 +19,9 @@
19#ifndef _XDELTA3_SECOND_H_ 19#ifndef _XDELTA3_SECOND_H_
20#define _XDELTA3_SECOND_H_ 20#define _XDELTA3_SECOND_H_
21 21
22/****************************************************************************************** 22/**************************************************************
23 Secondary compression 23 Secondary compression
24 ******************************************************************************************/ 24 **************************************************************/
25 25
26#define xd3_sec_data(s) ((s)->sec_stream_d) 26#define xd3_sec_data(s) ((s)->sec_stream_d)
27#define xd3_sec_inst(s) ((s)->sec_stream_i) 27#define xd3_sec_inst(s) ((s)->sec_stream_i)
@@ -291,13 +291,14 @@ xd3_encode_secondary (xd3_stream *stream,
291 291
292 tmp_head = xd3_alloc_output (stream, NULL); 292 tmp_head = xd3_alloc_output (stream, NULL);
293 293
294 /* Encode the size, encode the data. @@ Encoding the size makes it simpler, but is a 294 /* Encode the size, encode the data. @@ Encoding the size makes it
295 * little gross. Should not need the entire section in contiguous memory, but it is 295 * simpler, but is a little gross. Should not need the entire
296 * much easier this way. */ 296 * section in contiguous memory, but it is much easier this way. */
297 if ((ret = xd3_emit_size (stream, & tmp_head, orig_size)) || 297 if ((ret = xd3_emit_size (stream, & tmp_head, orig_size)) ||
298 (ret = stream->sec_type->encode (stream, sec_stream, *head, tmp_head, cfg))) { goto getout; } 298 (ret = stream->sec_type->encode (stream, sec_stream, *head, tmp_head, cfg))) { goto getout; }
299 299
300 /* If the secondary compressor determines its no good, it returns XD3_NOSECOND. */ 300 /* If the secondary compressor determines its no good, it returns
301 XD3_NOSECOND. */
301 302
302 /* Setup tmp_tail, comp_size */ 303 /* Setup tmp_tail, comp_size */
303 tmp_tail = tmp_head; 304 tmp_tail = tmp_head;