From a2cd2ae5a89a56b51bcee48f30fc63a792c5bc80 Mon Sep 17 00:00:00 2001 From: sg Date: Thu, 8 Oct 2015 21:22:35 +0200 Subject: [PATCH] lwiperf: fixed const-cast warning --- src/apps/lwiperf/lwiperf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/lwiperf/lwiperf.c b/src/apps/lwiperf/lwiperf.c index c541face..b4d60fe0 100644 --- a/src/apps/lwiperf/lwiperf.c +++ b/src/apps/lwiperf/lwiperf.c @@ -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;