mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08:00
Fix compile of TFTP with MSVC
This commit is contained in:
parent
f8683499a6
commit
81549578bf
@ -121,7 +121,7 @@ send_error(const ip_addr_t *addr, u16_t port, enum tftp_error code, const char *
|
|||||||
struct pbuf* p;
|
struct pbuf* p;
|
||||||
u16_t* payload;
|
u16_t* payload;
|
||||||
|
|
||||||
p = pbuf_alloc(PBUF_TRANSPORT, TFTP_HEADER_LENGTH + str_length + 1, PBUF_RAM);
|
p = pbuf_alloc(PBUF_TRANSPORT, (u16_t)(TFTP_HEADER_LENGTH + str_length + 1), PBUF_RAM);
|
||||||
if(p == NULL) {
|
if(p == NULL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -196,7 +196,7 @@ send_data(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
pbuf_realloc(tftp_state.last_data, TFTP_HEADER_LENGTH + ret);
|
pbuf_realloc(tftp_state.last_data, (u16_t)(TFTP_HEADER_LENGTH + ret));
|
||||||
resend_data();
|
resend_data();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user