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:
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user