diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:43:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:43:33 +0000 |
commit | 18525b97f1a4b60884962d8fb326e8e85d837686 (patch) | |
tree | 99125a3d130d197d38d03df460e7ec1634784b8f /extended.cc | |
parent | Releasing debian version 0.19-2. (diff) | |
download | tarlz-18525b97f1a4b60884962d8fb326e8e85d837686.tar.xz tarlz-18525b97f1a4b60884962d8fb326e8e85d837686.zip |
Merging upstream version 0.21.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | extended.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/extended.cc b/extended.cc index 1057142..ad65eb7 100644 --- a/extended.cc +++ b/extended.cc @@ -18,14 +18,8 @@ #define _FILE_OFFSET_BITS 64 #include <cctype> -#include <climits> #include <cstdio> #include <cstdlib> -#include <cstring> -#include <string> -#include <vector> -#include <pthread.h> // for tarlz.h -#include <stdint.h> #include "tarlz.h" @@ -173,7 +167,7 @@ long long Extended::format_block( Resizable_buffer & rbuf ) const if( edsize_ <= 0 ) return 0; // no extended data if( edsize_ >= 1LL << 33 ) return -1; // too much extended data if( !rbuf.resize( bufsize ) ) return -1; // extended block buffer - uint8_t * const header = (uint8_t *)rbuf(); // extended header + uint8_t * const header = rbuf.u8(); // extended header char * const buf = rbuf() + header_size; // extended records init_tar_header( header ); header[typeflag_o] = tf_extended; // fill only required fields |