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:
psychon
2009-03-31 15:11:32 +00:00
parent 5dda2a4098
commit 2f5a1cafc5
+2 -2
View File
@@ -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);