mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
* fix compilation warnings
This commit is contained in:
parent
f62d25fa5f
commit
1b2ac38a50
12 changed files with 13 additions and 15 deletions
3
HTTP.cpp
3
HTTP.cpp
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue