iperf: Fix an unused function warning seen with clang
This commit is contained in:
parent
d46b477e2c
commit
920d925806
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user