From: <ps...@us...> - 2009-04-02 12:54:22
|
Revision: 1474 http://znc.svn.sourceforge.net/znc/?rev=1474&view=rev Author: psychon Date: 2009-04-02 12:54:12 +0000 (Thu, 02 Apr 2009) Log Message: ----------- First argument to CHTTPSock::PrintHeader() should be of type off_t Thanks to KiNgMaR Modified Paths: -------------- trunk/HTTPSock.cpp trunk/HTTPSock.h Modified: trunk/HTTPSock.cpp =================================================================== --- trunk/HTTPSock.cpp 2009-04-02 12:34:13 UTC (rev 1473) +++ trunk/HTTPSock.cpp 2009-04-02 12:54:12 UTC (rev 1474) @@ -372,7 +372,7 @@ return m_bSentHeader; } -bool CHTTPSock::PrintHeader(unsigned long uContentLength, const CString& sContentType, unsigned int uStatusId, const CString& sStatusMsg) { +bool CHTTPSock::PrintHeader(off_t uContentLength, const CString& sContentType, unsigned int uStatusId, const CString& sStatusMsg) { if (SentHeader()) { DEBUG("- Header already sent!"); return false; Modified: trunk/HTTPSock.h =================================================================== --- trunk/HTTPSock.h 2009-04-02 12:34:13 UTC (rev 1473) +++ trunk/HTTPSock.h 2009-04-02 12:54:12 UTC (rev 1474) @@ -37,7 +37,7 @@ void CheckPost(); bool SentHeader() const; - bool PrintHeader(unsigned long uContentLength, const CString& sContentType = "", unsigned int uStatusId = 200, const CString& sStatusMsg = "OK"); + bool PrintHeader(off_t uContentLength, const CString& sContentType = "", unsigned int uStatusId = 200, const CString& sStatusMsg = "OK"); void AddHeader(const CString& sName, const CString& sValue); void SetContentType(const CString& sContentType); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |