mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08:00
Compile fix lwiperf.c after my last change
This commit is contained in:
parent
24ebf6bd6f
commit
ce370ec48f
@ -587,10 +587,13 @@ lwiperf_start_tcp_server(const ip_addr_t* local_addr, u16_t local_port,
|
|||||||
{
|
{
|
||||||
err_t err;
|
err_t err;
|
||||||
struct tcp_pcb* pcb;
|
struct tcp_pcb* pcb;
|
||||||
|
lwiperf_state_tcp_t* s;
|
||||||
|
|
||||||
if(local_addr == NULL) {
|
if(local_addr == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
lwiperf_state_tcp_t* s = (lwiperf_state_tcp_t*)LWIPERF_ALLOC(lwiperf_state_tcp_t);
|
|
||||||
|
s = (lwiperf_state_tcp_t*)LWIPERF_ALLOC(lwiperf_state_tcp_t);
|
||||||
if (s == NULL) {
|
if (s == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user