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)
601601 return false ;
602602}
603603
604- void FileCommit (FILE *fileout )
604+ void FileCommit (FILE *file )
605605{
606- fflush (fileout ); // harmless if redundantly called
606+ fflush (file ); // harmless if redundantly called
607607#ifdef WIN32
608- HANDLE hFile = (HANDLE)_get_osfhandle (_fileno (fileout ));
608+ HANDLE hFile = (HANDLE)_get_osfhandle (_fileno (file ));
609609 FlushFileBuffers (hFile);
610610#else
611611 #if defined(__linux__) || defined(__NetBSD__)
612- fdatasync (fileno (fileout ));
612+ fdatasync (fileno (file ));
613613 #elif defined(__APPLE__) && defined(F_FULLFSYNC)
614- fcntl (fileno (fileout ), F_FULLFSYNC, 0 );
614+ fcntl (fileno (file ), F_FULLFSYNC, 0 );
615615 #else
616- fsync (fileno (fileout ));
616+ fsync (fileno (file ));
617617 #endif
618618#endif
619619}
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ bool error(const char* fmt, const Args&... args)
9393
9494void PrintExceptionContinue (const std::exception *pex, const char * pszThread);
9595void ParseParameters (int argc, const char *const argv[]);
96- void FileCommit (FILE *fileout );
96+ void FileCommit (FILE *file );
9797bool TruncateFile (FILE *file, unsigned int length);
9898int RaiseFileDescriptorLimit (int nMinFD);
9999void AllocateFileRange (FILE *file, unsigned int offset, unsigned int length);
You can’t perform that action at this time.
0 commit comments