trivial fix

This commit is contained in:
erorcun 2020-12-27 06:03:38 +03:00
parent 0f020127f3
commit a4ec3cdf0b

View File

@ -31,7 +31,7 @@ bool
CDirectory::WriteDirFile(const char *filename) CDirectory::WriteDirFile(const char *filename)
{ {
int fd; int fd;
ssize_t n; size_t n;
fd = CFileMgr::OpenFileForWriting(filename); fd = CFileMgr::OpenFileForWriting(filename);
n = CFileMgr::Write(fd, (char*)entries, numEntries*sizeof(DirectoryInfo)); n = CFileMgr::Write(fd, (char*)entries, numEntries*sizeof(DirectoryInfo));
CFileMgr::CloseFile(fd); CFileMgr::CloseFile(fd);