diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 10:16:35 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 10:16:35 +0000 |
commit | 9c4f65be76622adb3e5429760e1828c36343c15e (patch) | |
tree | afc77153dd2432a0c71fe3589f0a431920b1ed33 /merge.cc | |
parent | Adding upstream version 1.13~rc2. (diff) | |
download | lziprecover-9c4f65be76622adb3e5429760e1828c36343c15e.tar.xz lziprecover-9c4f65be76622adb3e5429760e1828c36343c15e.zip |
Adding upstream version 1.13.upstream/1.13
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'merge.cc')
-rw-r--r-- | merge.cc | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,5 +1,5 @@ /* Lziprecover - Data recovery tool for lzipped files - Copyright (C) 2009, 2010, 2011 Antonio Diaz Diaz. + Copyright (C) 2009, 2010, 2011, 2012 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 @@ -102,7 +102,7 @@ bool copy_and_diff_file( const std::vector< int > & infd_vector, } -int ipow( const unsigned int base, const unsigned int exponent ) throw() +int ipow( const unsigned int base, const unsigned int exponent ) { int result = 1; for( unsigned int i = 0; i < exponent; ++i ) @@ -142,13 +142,14 @@ int open_input_files( const std::vector< std::string > & filenames, if( tmp < 0 ) { if( verbosity >= 0 ) - std::fprintf( stderr, "File `%s' is not seekable.\n", filenames[i].c_str() ); + std::fprintf( stderr, "File '%s' is not seekable.\n", filenames[i].c_str() ); return 1; } if( i == 0 ) { isize = tmp; - if( isize < min_member_size ) { show_error( "Input file is too short." ); return 2; } + if( isize < min_member_size ) + { show_error( "Input file is too short." ); return 2; } } else if( isize != tmp ) { show_error( "Sizes of input files are different." ); return 1; } @@ -165,7 +166,7 @@ int open_input_files( const std::vector< std::string > & filenames, if( try_decompress( infd_vector[i], isize ) ) { if( verbosity >= 1 ) - std::printf( "File `%s' has no errors. Recovery is not needed.\n", + std::printf( "File '%s' has no errors. Recovery is not needed.\n", filenames[i].c_str() ); return 0; } @@ -179,7 +180,7 @@ int open_input_files( const std::vector< std::string > & filenames, void cleanup_and_fail( const std::string & output_filename, - const int outfd, const int retval ) throw() + const int outfd, const int retval ) { if( outfd >= 0 ) close( outfd ); if( std::remove( output_filename.c_str() ) != 0 && errno != ENOENT ) |