File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -601,19 +601,19 @@ bool TryCreateDirectory(const boost::filesystem::path& p)
601
601
return false ;
602
602
}
603
603
604
- void FileCommit (FILE *fileout )
604
+ void FileCommit (FILE *file )
605
605
{
606
- fflush (fileout ); // harmless if redundantly called
606
+ fflush (file ); // harmless if redundantly called
607
607
#ifdef WIN32
608
- HANDLE hFile = (HANDLE)_get_osfhandle (_fileno (fileout ));
608
+ HANDLE hFile = (HANDLE)_get_osfhandle (_fileno (file ));
609
609
FlushFileBuffers (hFile);
610
610
#else
611
611
#if defined(__linux__) || defined(__NetBSD__)
612
- fdatasync (fileno (fileout ));
612
+ fdatasync (fileno (file ));
613
613
#elif defined(__APPLE__) && defined(F_FULLFSYNC)
614
- fcntl (fileno (fileout ), F_FULLFSYNC, 0 );
614
+ fcntl (fileno (file ), F_FULLFSYNC, 0 );
615
615
#else
616
- fsync (fileno (fileout ));
616
+ fsync (fileno (file ));
617
617
#endif
618
618
#endif
619
619
}
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ bool error(const char* fmt, const Args&... args)
93
93
94
94
void PrintExceptionContinue (const std::exception *pex, const char * pszThread);
95
95
void ParseParameters (int argc, const char *const argv[]);
96
- void FileCommit (FILE *fileout );
96
+ void FileCommit (FILE *file );
97
97
bool TruncateFile (FILE *file, unsigned int length);
98
98
int RaiseFileDescriptorLimit (int nMinFD);
99
99
void AllocateFileRange (FILE *file, unsigned int offset, unsigned int length);
You can’t perform that action at this time.
0 commit comments