mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
lwiperf: fixed const-cast warning
This commit is contained in:
parent
698e20a990
commit
a2cd2ae5a8
@ -289,7 +289,7 @@ lwiperf_tcp_client_send_more(lwiperf_state_tcp_t* conn)
|
||||
} else {
|
||||
/* transmit data */
|
||||
/* @todo: every x bytes, transmit the settings again */
|
||||
txptr = (void*)&lwiperf_txbuf_const[conn->bytes_transferred % 10];
|
||||
txptr = (void*)(size_t)&lwiperf_txbuf_const[conn->bytes_transferred % 10];
|
||||
txlen_max = TCP_MSS;
|
||||
if (conn->bytes_transferred == 48) { /* @todo: fix this for intermediate settings, too */
|
||||
txlen_max = TCP_MSS - 24;
|
||||
|
Loading…
Reference in New Issue
Block a user