mirror of
https://github.com/znc/znc.git
synced 2026-07-05 17:31:06 +02:00
Switch some code to use the new return type of GetSize()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1471 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+2
-2
@@ -173,7 +173,7 @@ bool CHTTPSock::PrintFile(const CString& sFileName, CString sContentType) {
|
||||
if (bNotModified) {
|
||||
PrintHeader(0, sContentType, 304, "Not Modified");
|
||||
} else {
|
||||
unsigned long long iSize = File.GetSize();
|
||||
off_t iSize = File.GetSize();
|
||||
|
||||
// Don't try to send files over 16 MiB, because it might block
|
||||
// the whole process and use huge amounts of memory.
|
||||
@@ -184,7 +184,7 @@ bool CHTTPSock::PrintFile(const CString& sFileName, CString sContentType) {
|
||||
}
|
||||
|
||||
char szBuf[4096];
|
||||
unsigned long long iLen = 0;
|
||||
off_t iLen = 0;
|
||||
int i = 0;
|
||||
|
||||
PrintHeader(iSize, sContentType);
|
||||
|
||||
Reference in New Issue
Block a user