From 99cfb8880e6829f12084b2666d250fc01178b99e Mon Sep 17 00:00:00 2001 From: liang yongxiang Date: Mon, 23 Jul 2018 13:41:51 +0800 Subject: [PATCH] fixed warning: type is incompatible --- iperf/iperf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iperf/iperf.c b/iperf/iperf.c index 35e4492..58c3596 100644 --- a/iperf/iperf.c +++ b/iperf/iperf.c @@ -124,7 +124,7 @@ static void iperf_client(void* thread_param) void iperf_server(void* thread_param) { uint8_t *recv_data; - rt_uint32_t sin_size; + socklen_t sin_size; rt_tick_t tick1, tick2; int sock = -1, connected, bytes_received, recvlen; struct sockaddr_in server_addr, client_addr;