diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-02-13 07:01:05 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-02-13 07:01:29 +0000 |
commit | f2780f2544d654fa46ad91189c1636bd6f64605d (patch) | |
tree | f2762bc24207fc925eec55398803ee9981fb433c /alone_to_lz.cc | |
parent | Releasing debian version 1.19-4. (diff) | |
download | lziprecover-f2780f2544d654fa46ad91189c1636bd6f64605d.tar.xz lziprecover-f2780f2544d654fa46ad91189c1636bd6f64605d.zip |
Merging upstream version 1.20.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'alone_to_lz.cc')
-rw-r--r-- | alone_to_lz.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alone_to_lz.cc b/alone_to_lz.cc index e87a18a..e949f9d 100644 --- a/alone_to_lz.cc +++ b/alone_to_lz.cc @@ -1,5 +1,5 @@ /* Lziprecover - Data recovery tool for the lzip format - Copyright (C) 2009-2017 Antonio Diaz Diaz. + Copyright (C) 2009-2018 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 @@ -85,7 +85,7 @@ int alone_to_lz( const int infd, const Pretty_print & pp ) long file_size = 0; uint8_t * const buffer = read_file( infd, &file_size, pp ); if( !buffer ) return 1; - if( pp.verbosity() >= 1 ) pp(); + if( verbosity >= 1 ) pp(); if( file_size < lzma_header_size ) { pp( "file is too short" ); std::free( buffer ); return 2; } @@ -144,6 +144,6 @@ int alone_to_lz( const int infd, const Pretty_print & pp ) } catch( std::bad_alloc ) { pp( "Not enough memory." ); return 1; } catch( Error e ) { pp(); show_error( e.msg, errno ); return 1; } - if( pp.verbosity() >= 1 ) std::fputs( "done\n", stderr ); + if( verbosity >= 1 ) std::fputs( "done\n", stderr ); return 0; } |