From 166ede1642869f46a0aae2df885772f7383e9ab2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 23 Jan 2024 06:31:44 +0100 Subject: Adding upstream version 1.24. Signed-off-by: Daniel Baumann --- lzip_index.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'lzip_index.h') diff --git a/lzip_index.h b/lzip_index.h index 52d831e..95e277d 100644 --- a/lzip_index.h +++ b/lzip_index.h @@ -1,5 +1,5 @@ /* Lziprecover - Data recovery tool for the lzip format - Copyright (C) 2009-2023 Antonio Diaz Diaz. + Copyright (C) 2009-2024 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 @@ -39,10 +39,8 @@ class Lzip_index long long insize; int retval_; unsigned dictionary_size_; // largest dictionary size in the file - bool bad_magic_; // bad magic in first header - bool check_header_error( const Lzip_header & header, const bool first, - const bool ignore_bad_ds ); + bool check_header( const Lzip_header & header, const bool ignore_bad_ds ); void set_errno_error( const char * const msg ); void set_num_error( const char * const msg, unsigned long long num ); bool read_header( const int fd, Lzip_header & header, const long long pos, @@ -55,8 +53,7 @@ class Lzip_index public: Lzip_index() - : error_( "No index" ), insize( 0 ), retval_( 2 ), - dictionary_size_( 0 ), bad_magic_( false ) {} + : error_( "No index" ), insize( 0 ), retval_( 2 ), dictionary_size_( 0 ) {} Lzip_index( const int infd, const Cl_options & cl_opts, const bool ignore_bad_ds = false, const bool ignore_gaps = false, const long long max_pos = 0 ); @@ -67,7 +64,6 @@ public: const std::string & error() const { return error_; } int retval() const { return retval_; } unsigned dictionary_size() const { return dictionary_size_; } - bool bad_magic() const { return bad_magic_; } bool operator==( const Lzip_index & li ) const { -- cgit v1.2.3