Chris Denham, fixed type of parameters to ensure they are longs where appropriate.

This commit is contained in:
Robert Osfield 2012-01-24 17:38:23 +00:00
parent d350ea5395
commit 9da901e11b

View File

@ -147,7 +147,7 @@ EasyCurl::EasyCurl()
curl_easy_setopt(_curl, CURLOPT_USERAGENT, "libcurl-agent/1.0");
curl_easy_setopt(_curl, CURLOPT_WRITEFUNCTION, StreamMemoryCallback);
curl_easy_setopt(_curl, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(_curl, CURLOPT_FOLLOWLOCATION, 1L);
}
EasyCurl::~EasyCurl()
@ -176,7 +176,7 @@ osgDB::ReaderWriter::WriteResult EasyCurl::write(const std::string& proxyAddress
char* postedContent = NULL;
// Copy data from istream into buffer.
int contentLength = 0;
long contentLength = 0;
const int bufferSize = 4096;
while(true)
{
@ -210,7 +210,7 @@ osgDB::ReaderWriter::WriteResult EasyCurl::write(const std::string& proxyAddress
if (post) curl_formfree(post);
if (postedContent) free(postedContent);
curl_easy_setopt(_curl, CURLOPT_HTTPPOST, (void *)0);
curl_easy_setopt(_curl, CURLOPT_HTTPGET, 1);
curl_easy_setopt(_curl, CURLOPT_HTTPGET, 1L);
curl_easy_setopt(_curl, CURLOPT_WRITEDATA, (void *)0);