iperf: Fix an unused function warning seen with clang

This commit is contained in:
YAMAMOTO Takashi 2021-06-17 13:37:00 +09:00 committed by Alin Jerpelea
parent d46b477e2c
commit 920d925806

View File

@ -27,6 +27,8 @@
#include <net/if.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <assert.h>
#include <stdbool.h>
#include "iperf.h"
/****************************************************************************
@ -673,10 +675,16 @@ static void iperf_task_traffic(void *arg)
{
iperf_run_tcp_client();
}
else
else if (iperf_is_tcp_server())
{
iperf_run_tcp_server();
}
else
{
/* shouldn't happen */
assert(false);
}
if (s_iperf_ctrl.buffer)
{