mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
try to fix compiling with gcc & clang
This commit is contained in:
parent
944f286d87
commit
e61b925709
@ -233,7 +233,7 @@ ip6addr_ntoa_r(const ip6_addr_t *addr, char *buf, int buflen)
|
||||
#define IP4MAPPED_HEADER "::FFFF:"
|
||||
char *buf_ip4 = buf + sizeof(IP4MAPPED_HEADER) - 1;
|
||||
int buflen_ip4 = buflen - sizeof(IP4MAPPED_HEADER) + 1;
|
||||
if (buflen < sizeof(IP4MAPPED_HEADER)) {
|
||||
if (buflen < (int)sizeof(IP4MAPPED_HEADER)) {
|
||||
return NULL;
|
||||
}
|
||||
memcpy(buf, IP4MAPPED_HEADER, sizeof(IP4MAPPED_HEADER));
|
||||
|
@ -149,7 +149,7 @@ START_TEST(test_udp_new_remove)
|
||||
}
|
||||
END_TEST
|
||||
|
||||
void test_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p,
|
||||
static void test_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p,
|
||||
const ip_addr_t *addr, u16_t port)
|
||||
{
|
||||
struct test_udp_rxdata *ctr = (struct test_udp_rxdata *)arg;
|
||||
|
Loading…
Reference in New Issue
Block a user