aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2013-01-30 04:17:33 +0100
committerPieter Wuille <pieterw@google.com>2013-01-30 04:55:38 +0100
commit1eb578796c98f457546059b66eb98fd0efc8e690 (patch)
tree31f41b033a1c43799d1ed9b6eaab7ed705a908e4 /src/util.h
parent288fdc092aff9d7e0cea159196b2e96044a786c7 (diff)
Drop padding in blk* when finalizing file
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 97911d7493..1d29867076 100644
--- a/src/util.h
+++ b/src/util.h
@@ -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();