aboutsummaryrefslogtreecommitdiff
path: root/modules/benchmark/iperf3.c
diff options
context:
space:
mode:
authorhwspeedy <ns@bigbear.dk>2024-05-24 10:20:25 +0200
committerhwspeedy <ns@bigbear.dk>2024-05-24 10:20:25 +0200
commita8ccc2aa89c78108566c67b9e853797ea451f9c8 (patch)
tree9499a58b04a6baf1ab4a0741f7a31d3ddbc0fbc8 /modules/benchmark/iperf3.c
parent25c366a8074af72c0811a960b947302bed036669 (diff)
FIX GCC Warnings, added more checking to gcc flags
Diffstat (limited to 'modules/benchmark/iperf3.c')
-rw-r--r--modules/benchmark/iperf3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/benchmark/iperf3.c b/modules/benchmark/iperf3.c
index 43e40627..43b98df4 100644
--- a/modules/benchmark/iperf3.c
+++ b/modules/benchmark/iperf3.c
@@ -32,7 +32,7 @@ static int iperf3_version() {
if (spawned) {
ret = 0;
p = out;
- while(next_nl = strchr(p, '\n')) {
+ while((next_nl = strchr(p, '\n'))) {
*next_nl = 0;
/* version */
mc = sscanf(p, "iperf %d.%d", &v1, &v2);
@@ -75,7 +75,6 @@ static double _get_double(JsonParser *j, const char* path) {
static bench_value iperf3_client() {
bench_value ret = EMPTY_BENCH_VALUE;
- int v1 = 0, v2 = 0, v3 = 0, mc = 0;
gboolean spawned;
gchar *out, *err;
GError *e = NULL;