diff --git a/FileUtils.h b/FileUtils.h index 15f34cc2..a707b822 100644 --- a/FileUtils.h +++ b/FileUtils.h @@ -26,13 +26,6 @@ public: CFile(int iFD, const CString& sLongName); ~CFile(); - enum EOptions { - F_Read = O_RDONLY, - F_Write = O_WRONLY, - F_Create = O_CREAT, - F_Truncate = O_TRUNC - }; - enum EFileTypes { FT_REGULAR, FT_DIRECTORY, diff --git a/HTTPSock.cpp b/HTTPSock.cpp index 76a9b3c4..b8df7e82 100644 --- a/HTTPSock.cpp +++ b/HTTPSock.cpp @@ -132,7 +132,7 @@ bool CHTTPSock::PrintFile(const CString& sFileName, CString sContentType) { CFile File(sFilePath); - if (!File.Open(CFile::F_Read)) { + if (!File.Open()) { PrintNotFound(); return false; }