mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
Remove that useless and more or less unused enum for open() modes
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1361 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -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,
|
||||
|
||||
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user