mirror of
https://github.com/arduino-libraries/ArduinoHttpClient.git
synced 2025-04-22 19:22:50 +03:00
Correct some warnings
This commit is contained in:
parent
f12a797fb3
commit
5df9084d8e
@ -252,7 +252,7 @@ int HttpClient::responseStatusCode()
|
|||||||
// Where HTTP-Version is of the form:
|
// Where HTTP-Version is of the form:
|
||||||
// HTTP-Version = "HTTP" "/" 1*DIGIT "." 1*DIGIT
|
// HTTP-Version = "HTTP" "/" 1*DIGIT "." 1*DIGIT
|
||||||
|
|
||||||
char c = '\0';
|
int c = '\0';
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
// Make sure the status code is reset, and likewise the state. This
|
// Make sure the status code is reset, and likewise the state. This
|
||||||
@ -311,6 +311,9 @@ int HttpClient::responseStatusCode()
|
|||||||
case eStatusCodeRead:
|
case eStatusCodeRead:
|
||||||
// We're just waiting for the end of the line now
|
// We're just waiting for the end of the line now
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
};
|
};
|
||||||
// We read something, reset the timeout counter
|
// We read something, reset the timeout counter
|
||||||
timeoutStart = millis();
|
timeoutStart = millis();
|
||||||
|
2
b64.cpp
2
b64.cpp
@ -66,5 +66,7 @@ int b64_encode(const unsigned char* aInput, int aInputLen, unsigned char* aOutpu
|
|||||||
b64_encode(&aInput[i*3], aInputLen % 3, &aOutput[i*4], aOutputLen - (i*4));
|
b64_encode(&aInput[i*3], aInputLen % 3, &aOutput[i*4], aOutputLen - (i*4));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return ((aInputLen+2)/3)*4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user