* fix compilation warnings

This commit is contained in:
hagen 2016-06-01 00:00:00 +00:00
parent f62d25fa5f
commit 1b2ac38a50
12 changed files with 13 additions and 15 deletions

View file

@ -406,11 +406,10 @@ namespace http {
bool MergeChunkedResponse (std::istream& in, std::ostream& out) {
std::string hexLen;
long int len;
while (!in.eof ()) {
std::getline (in, hexLen);
errno = 0;
len = strtoul(hexLen.c_str(), (char **) NULL, 16);
long int len = strtoul(hexLen.c_str(), (char **) NULL, 16);
if (errno != 0)
return false; /* conversion error */
if (len == 0)