diff options
Diffstat (limited to '')
-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; } |