Drop padding in blk* when finalizing file

This commit is contained in:
Pieter Wuille
2013-01-30 04:17:33 +01:00
committed by Pieter Wuille
parent 288fdc092a
commit 1eb578796c
3 changed files with 15 additions and 2 deletions

View File

@@ -193,6 +193,7 @@ bool WildcardMatch(const char* psz, const char* mask);
bool WildcardMatch(const std::string& str, const std::string& mask);
void FileCommit(FILE *fileout);
int GetFilesize(FILE* file);
bool TruncateFile(FILE *file, unsigned int length);
void AllocateFileRange(FILE *file, unsigned int offset, unsigned int length);
bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest);
boost::filesystem::path GetDefaultDataDir();