1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-17 12:02:15 +03:00

Fixing a few compiler warnings to allow compilation with -Wall -Wextra and -Werror. (#3153)

This commit is contained in:
Trygve Laugstøl
2017-05-08 11:56:08 +02:00
committed by Ivan Grokhotkov
parent db4d3e0098
commit 2d9e767630
3 changed files with 2 additions and 3 deletions

View File

@ -601,7 +601,7 @@ bool WiFiClientSecure::loadPrivateKey(Stream& stream, size_t size)
extern "C" int __ax_port_read(int fd, uint8_t* buffer, size_t count)
{
ClientContext* _client = SSLContext::getIOContext(fd);
if (!_client || _client->state() != ESTABLISHED && !_client->getSize()) {
if (!_client || (_client->state() != ESTABLISHED && !_client->getSize())) {
errno = EIO;
return -1;
}