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 @@ -600,19 +600,19 @@ bool TryCreateDirectory(const boost::filesystem::path& p)
600
600
return false ;
601
601
}
602
602
603
- void FileCommit (FILE *fileout )
603
+ void FileCommit (FILE *file )
604
604
{
605
- fflush (fileout ); // harmless if redundantly called
605
+ fflush (file ); // harmless if redundantly called
606
606
#ifdef WIN32
607
- HANDLE hFile = (HANDLE)_get_osfhandle (_fileno (fileout ));
607
+ HANDLE hFile = (HANDLE)_get_osfhandle (_fileno (file ));
608
608
FlushFileBuffers (hFile);
609
609
#else
610
610
#if defined(__linux__) || defined(__NetBSD__)
611
- fdatasync (fileno (fileout ));
611
+ fdatasync (fileno (file ));
612
612
#elif defined(__APPLE__) && defined(F_FULLFSYNC)
613
- fcntl (fileno (fileout ), F_FULLFSYNC, 0 );
613
+ fcntl (fileno (file ), F_FULLFSYNC, 0 );
614
614
#else
615
- fsync (fileno (fileout ));
615
+ fsync (fileno (file ));
616
616
#endif
617
617
#endif
618
618
}
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