diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 11:50:27 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 11:50:27 +0000 |
commit | 16e805860b4a789ee2a239aaf1011188e0ba4a79 (patch) | |
tree | f2898eef69d3e6dfca0278db399460eaed095eb4 /file_index.cc | |
parent | Adding upstream version 1.17~pre1. (diff) | |
download | lziprecover-16e805860b4a789ee2a239aaf1011188e0ba4a79.tar.xz lziprecover-16e805860b4a789ee2a239aaf1011188e0ba4a79.zip |
Adding upstream version 1.17~rc1.upstream/1.17_rc1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r-- | file_index.cc | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/file_index.cc b/file_index.cc index f7e1cd0..de685a3 100644 --- a/file_index.cc +++ b/file_index.cc @@ -1,5 +1,5 @@ /* Lziprecover - Data recovery tool for the lzip format - Copyright (C) 2009-2014 Antonio Diaz Diaz. + Copyright (C) 2009-2015 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 @@ -25,6 +25,7 @@ #include <unistd.h> #include "lzip.h" +#include "block.h" #include "file_index.h" @@ -37,18 +38,6 @@ int seek_read( const int fd, uint8_t * const buf, const int size, } -Block Block::split( const long long pos ) - { - if( pos > pos_ && pos < end() ) - { - const Block b( pos_, pos - pos_ ); - pos_ = pos; size_ -= b.size_; - return b; - } - return Block( 0, 0 ); - } - - void File_index::set_errno_error( const char * const msg ) { error_ = msg; error_ += std::strerror( errno ); error_ += '.'; |