1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

make compiler happier

This commit is contained in:
Me No Dev
2015-11-25 18:11:16 +02:00
parent dea1d46f80
commit a44632b8cf
11 changed files with 45 additions and 39 deletions

View File

@ -311,7 +311,7 @@ bool WiFiClientSecure::verify(const char* fp, const char* url) {
uint8_t sha1[20];
int len = strlen(fp);
int pos = 0;
for (int i = 0; i < sizeof(sha1); ++i) {
for (size_t i = 0; i < sizeof(sha1); ++i) {
while (pos < len && fp[pos] == ' ') {
++pos;
}

View File

@ -309,9 +309,6 @@ class ClientContext {
}
private:
ClientContext* _next;
int _refcnt;
tcp_pcb* _pcb;
pbuf* _rx_buf;
@ -320,6 +317,9 @@ class ClientContext {
discard_cb_t _discard_cb;
void* _discard_cb_arg;
int _refcnt;
ClientContext* _next;
size_t _size_sent;
bool _send_waiting;
};

View File

@ -365,22 +365,17 @@ private:
}
private:
int _refcnt;
udp_pcb* _pcb;
ip_addr_t _dest_addr;
uint16_t _dest_port;
uint16_t _multicast_ttl;
bool _first_buf_taken;
pbuf* _rx_buf;
bool _first_buf_taken;
size_t _rx_buf_offset;
int _refcnt;
pbuf* _tx_buf_head;
pbuf* _tx_buf_cur;
size_t _tx_buf_offset;
uint16_t _multicast_ttl;
uint16_t _dest_port;
ip_addr_t _dest_addr;
rxhandler_t _on_rx;
};