* fix compilation warnings

This commit is contained in:
hagen committed 2016-06-01 00:14:15 +00:00
1 parent f62d25fa5f
commit 1b2ac38a50
12 files changed
+13 -15

No files matched your search

+1 -2
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)