mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-04-16 23:43:15 +00:00
Fix a couple of build warnings in altcp_tls_mbedtls.c
This commit is contained in:
parent
ba99b4d452
commit
4bc43f3a47
@ -429,7 +429,7 @@ altcp_mbedtls_handle_rx_appldata(struct altcp_pcb *conn, altcp_mbedtls_state_t *
|
||||
} else {
|
||||
err_t err;
|
||||
if (ret) {
|
||||
LWIP_ASSERT("bogus receive length", ret <= PBUF_POOL_BUFSIZE);
|
||||
LWIP_ASSERT("bogus receive length", ret <= (int)PBUF_POOL_BUFSIZE);
|
||||
/* trim pool pbuf to actually decoded length */
|
||||
pbuf_realloc(buf, (u16_t)ret);
|
||||
|
||||
@ -1059,6 +1059,8 @@ altcp_tls_configure_alpn_protocols(struct altcp_tls_config *conf, const char **p
|
||||
|
||||
return ret;
|
||||
#else
|
||||
(void)conf;
|
||||
(void)protos;
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user