1
0
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:
Sandeep Mistry 2016-06-17 15:34:49 -04:00
parent f12a797fb3
commit 5df9084d8e
2 changed files with 6 additions and 1 deletions

View File

@ -252,7 +252,7 @@ int HttpClient::responseStatusCode()
// Where HTTP-Version is of the form:
// HTTP-Version = "HTTP" "/" 1*DIGIT "." 1*DIGIT
char c = '\0';
int c = '\0';
do
{
// Make sure the status code is reset, and likewise the state. This
@ -311,6 +311,9 @@ int HttpClient::responseStatusCode()
case eStatusCodeRead:
// We're just waiting for the end of the line now
break;
default:
break;
};
// We read something, reset the timeout counter
timeoutStart = millis();

View File

@ -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));
}
}
return ((aInputLen+2)/3)*4;
}