mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-31 14:13:09 +00:00
iperf: Fix an unused function warning seen with clang
This commit is contained in:
parent
d46b477e2c
commit
920d925806
1 changed files with 9 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue