summaryrefslogtreecommitdiffstats
path: root/lzlib.c
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:05:37 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:05:37 +0000
commit2a7c0444ca9f1dfca772c4f694d4501c69e62632 (patch)
treed004adab58fd4cb4f234f078c1fff053f277cd7f /lzlib.c
parentAdding debian version 1.6~rc2-2. (diff)
downloadlzlib-2a7c0444ca9f1dfca772c4f694d4501c69e62632.tar.xz
lzlib-2a7c0444ca9f1dfca772c4f694d4501c69e62632.zip
Merging upstream version 1.6.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'lzlib.c')
-rw-r--r--lzlib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lzlib.c b/lzlib.c
index 7e9c67c..bc3b32c 100644
--- a/lzlib.c
+++ b/lzlib.c
@@ -1,5 +1,5 @@
-/* Lzlib - Compression library for lzip files
- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Antonio Diaz Diaz.
+/* Lzlib - Compression library for the lzip format
+ Copyright (C) 2009-2014 Antonio Diaz Diaz.
This library is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -241,11 +241,11 @@ int LZ_compress_sync_flush( struct LZ_Encoder * const e )
if( e->flush_pending <= 0 && !Mf_flushing_or_end( e->matchfinder ) )
{
e->flush_pending = 2; /* 2 consecutive markers guarantee decoding */
- Mf_set_flushing( e->matchfinder, true );
+ e->matchfinder->flushing = true;
if( !LZe_encode_member( e->lz_encoder ) )
{ e->lz_errno = LZ_library_error; e->fatal = true; return -1; }
while( e->flush_pending > 0 && LZe_sync_flush( e->lz_encoder ) )
- { if( --e->flush_pending <= 0 ) Mf_set_flushing( e->matchfinder, false ); }
+ { if( --e->flush_pending <= 0 ) e->matchfinder->flushing = false; }
}
return 0;
}
@@ -258,7 +258,7 @@ int LZ_compress_read( struct LZ_Encoder * const e,
if( !LZe_encode_member( e->lz_encoder ) )
{ e->lz_errno = LZ_library_error; e->fatal = true; return -1; }
while( e->flush_pending > 0 && LZe_sync_flush( e->lz_encoder ) )
- { if( --e->flush_pending <= 0 ) Mf_set_flushing( e->matchfinder, false ); }
+ { if( --e->flush_pending <= 0 ) e->matchfinder->flushing = false; }
return Re_read_data( &e->lz_encoder->renc, buffer, size );
}