Skip to content

Commit 5df9084

Browse files
committed
Correct some warnings
1 parent f12a797 commit 5df9084

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

HttpClient.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ int HttpClient::responseStatusCode()
252252
// Where HTTP-Version is of the form:
253253
// HTTP-Version = "HTTP" "/" 1*DIGIT "." 1*DIGIT
254254

255-
char c = '\0';
255+
int c = '\0';
256256
do
257257
{
258258
// Make sure the status code is reset, and likewise the state. This
@@ -311,6 +311,9 @@ int HttpClient::responseStatusCode()
311311
case eStatusCodeRead:
312312
// We're just waiting for the end of the line now
313313
break;
314+
315+
default:
316+
break;
314317
};
315318
// We read something, reset the timeout counter
316319
timeoutStart = millis();

b64.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,7 @@ int b64_encode(const unsigned char* aInput, int aInputLen, unsigned char* aOutpu
6666
b64_encode(&aInput[i*3], aInputLen % 3, &aOutput[i*4], aOutputLen - (i*4));
6767
}
6868
}
69+
70+
return ((aInputLen+2)/3)*4;
6971
}
7072

0 commit comments

Comments
 (0)