diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:53:58 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:53:58 +0000 |
commit | b997e3524d81c0d4d4176d96acc5891d9c4a43f3 (patch) | |
tree | bb0fbc6e5cd421af8073acbb3e3a0a318e402c9b /compress.cc | |
parent | Adding upstream version 1.4~pre1. (diff) | |
download | plzip-b997e3524d81c0d4d4176d96acc5891d9c4a43f3.tar.xz plzip-b997e3524d81c0d4d4176d96acc5891d9c4a43f3.zip |
Adding upstream version 1.4~rc1.upstream/1.4_rc1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r-- | compress.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compress.cc b/compress.cc index 424e090..1f0ae5d 100644 --- a/compress.cc +++ b/compress.cc @@ -251,7 +251,7 @@ public: xlock( &omutex ); // id collision shouldn't happen if( circular_buffer[i] != 0 ) - internal_error( "id collision in collect_packet" ); + internal_error( "id collision in collect_packet." ); // merge packet into circular buffer circular_buffer[i] = opacket; if( opacket->id == deliver_id ) xsignal( &oav_or_exit ); @@ -387,7 +387,7 @@ extern "C" void * cworker( void * arg ) if( !encoder || LZ_compress_errno( encoder ) == LZ_mem_error ) pp( mem_msg ); else - internal_error( "invalid argument to encoder" ); + internal_error( "invalid argument to encoder." ); cleanup_and_fail(); } @@ -402,7 +402,7 @@ extern "C" void * cworker( void * arg ) const int wr = LZ_compress_write( encoder, packet->data + offset + written, packet->size - written ); - if( wr < 0 ) internal_error( "library error (LZ_compress_write)" ); + if( wr < 0 ) internal_error( "library error (LZ_compress_write)." ); written += wr; } if( written >= packet->size ) LZ_compress_finish( encoder ); @@ -419,7 +419,7 @@ extern "C" void * cworker( void * arg ) } new_pos += rd; if( new_pos >= offset + written ) - internal_error( "packet size exceeded in worker" ); + internal_error( "packet size exceeded in worker." ); if( LZ_compress_finished( encoder ) == 1 ) break; } @@ -542,6 +542,6 @@ int compress( const int data_size, const int dictionary_size, courier.ocheck_counter, courier.owait_counter ); - if( !courier.finished() ) internal_error( "courier not finished" ); + if( !courier.finished() ) internal_error( "courier not finished." ); return 0; } |