aboutsummaryrefslogtreecommitdiff
path: root/src/iperf_client_api.c
diff options
context:
space:
mode:
authorBruce A. Mah <bmah@es.net>2014-01-30 15:15:53 -0800
committerBruce A. Mah <bmah@es.net>2014-01-30 15:15:53 -0800
commit9a829841eb49e3d773111ba58a4239a61e3dd2a4 (patch)
treee1a1b625cc670ace3c440738bde98380ab132141 /src/iperf_client_api.c
parent441d8b75a0c8f3ab3b95c88376ff153a5a569d99 (diff)
downloadiperf3-9a829841eb49e3d773111ba58a4239a61e3dd2a4.tar.gz
Replace system("uname -a") with call to uname(3).
Slightly reworked version of a patch that was... Submitted by: Susant Sahani <ssahani@redhat.com>
Diffstat (limited to 'src/iperf_client_api.c')
-rw-r--r--src/iperf_client_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iperf_client_api.c b/src/iperf_client_api.c
index 1e72c42..0e0f1ad 100644
--- a/src/iperf_client_api.c
+++ b/src/iperf_client_api.c
@@ -356,7 +356,7 @@ iperf_run_client(struct iperf_test * test)
iprintf(test, "%s\n", version);
iprintf(test, "%s", "");
fflush(stdout);
- system("uname -a");
+ printf("%s\n", get_system_info());
}
/* Start the client and connect to the server */