From 2f5a1cafc5e67a7d1e0e602fdbb67d1d94507de5 Mon Sep 17 00:00:00 2001 From: psychon Date: Tue, 31 Mar 2009 15:11:32 +0000 Subject: [PATCH] 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 --- HTTPSock.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HTTPSock.cpp b/HTTPSock.cpp index 8941e032..a74f7417 100644 --- a/HTTPSock.cpp +++ b/HTTPSock.cpp @@ -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);