summaryrefslogtreecommitdiffstats
path: root/lzip.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 15:36:59 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 15:36:59 +0000
commit3d3968e451576fa317143140cb93242dba81f418 (patch)
treeedb3c6b69183c590ba38029242bd01614e426818 /lzip.h
parentAdding debian version 1.1-1. (diff)
downloadplzip-3d3968e451576fa317143140cb93242dba81f418.tar.xz
plzip-3d3968e451576fa317143140cb93242dba81f418.zip
Merging upstream version 1.2~pre1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r--lzip.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/lzip.h b/lzip.h
index dfb28ee..f39d270 100644
--- a/lzip.h
+++ b/lzip.h
@@ -1,5 +1,5 @@
/* Plzip - Parallel compressor compatible with lzip
- Copyright (C) 2009, 2010, 2011, 2012, 2013 Antonio Diaz Diaz.
+ Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Antonio Diaz Diaz.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -38,7 +38,7 @@ public:
for( unsigned i = 0; i < filenames.size(); ++i )
{
const std::string & s = filenames[i];
- const unsigned len = ( ( s == "-" ) ? stdin_name_len : s.size() );
+ const unsigned len = ( s == "-" ) ? stdin_name_len : s.size();
if( len > longest_name ) longest_name = len;
}
if( longest_name == 0 ) longest_name = stdin_name_len;
@@ -135,9 +135,7 @@ struct File_trailer
}
void data_size( unsigned long long sz )
- {
- for( int i = 4; i <= 11; ++i ) { data[i] = (uint8_t)sz; sz >>= 8; }
- }
+ { for( int i = 4; i <= 11; ++i ) { data[i] = (uint8_t)sz; sz >>= 8; } }
unsigned long long member_size() const
{
@@ -147,9 +145,7 @@ struct File_trailer
}
void member_size( unsigned long long sz )
- {
- for( int i = 12; i <= 19; ++i ) { data[i] = (uint8_t)sz; sz >>= 8; }
- }
+ { for( int i = 12; i <= 19; ++i ) { data[i] = (uint8_t)sz; sz >>= 8; } }
};
@@ -202,7 +198,7 @@ void show_error( const char * const msg, const int errcode = 0,
void internal_error( const char * const msg );
void show_progress( const int packet_size,
const Pretty_print * const p = 0,
- const struct stat * const in_statsp = 0 );
+ const unsigned long long cfile_size = 0 );
class Slot_tally
@@ -210,7 +206,7 @@ class Slot_tally
const int num_slots; // total slots
int num_free; // remaining free slots
pthread_mutex_t mutex;
- pthread_cond_t slot_av; // free slot available
+ pthread_cond_t slot_av; // slot available
Slot_tally( const Slot_tally & ); // declared as private
void operator=( const Slot_tally & ); // declared as private