diff options
author | Brendan Jackman <bjackman@users.noreply.github.com> | 2018-06-08 19:44:09 +0100 |
---|---|---|
committer | Bruce A. Mah <bmah@kitchenlab.org> | 2018-06-08 11:44:09 -0700 |
commit | d8f2276d707bb5e6937fa2631b1c841331384b4d (patch) | |
tree | 9ad0786a6bae928b19bb7c320a0dc1a829bc32ed /src/iperf_client_api.c | |
parent | 7f883016bb77a39f11f6c62094c990a1dfef986e (diff) | |
download | iperf3-d8f2276d707bb5e6937fa2631b1c841331384b4d.tar.gz |
Fix some indentation (#750)
There are lots of mixed tabs and spaces, most of them look OK if tabs are 8
characters wide, but this bit seems to have been written by someone whose editor
thinks they're 4 characters wide, so it looks all messed up.
Diffstat (limited to 'src/iperf_client_api.c')
-rw-r--r-- | src/iperf_client_api.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/iperf_client_api.c b/src/iperf_client_api.c index c823c5a..3ca6b06 100644 --- a/src/iperf_client_api.c +++ b/src/iperf_client_api.c @@ -346,22 +346,22 @@ iperf_connect(struct iperf_test *test) socklen_t len; len = sizeof(opt); - if (getsockopt(test->ctrl_sck, IPPROTO_TCP, TCP_MAXSEG, &opt, &len) < 0) { - test->ctrl_sck_mss = 0; - } - else { - if (opt > 0 && opt <= MAX_UDP_BLOCKSIZE) { - test->ctrl_sck_mss = opt; - } - else { - char str[128]; - snprintf(str, sizeof(str), - "Ignoring nonsense TCP MSS %d", opt); - warning(str); + if (getsockopt(test->ctrl_sck, IPPROTO_TCP, TCP_MAXSEG, &opt, &len) < 0) { + test->ctrl_sck_mss = 0; + } + else { + if (opt > 0 && opt <= MAX_UDP_BLOCKSIZE) { + test->ctrl_sck_mss = opt; + } + else { + char str[128]; + snprintf(str, sizeof(str), + "Ignoring nonsense TCP MSS %d", opt); + warning(str); - test->ctrl_sck_mss = 0; - } - } + test->ctrl_sck_mss = 0; + } + } if (test->verbose) { printf("Control connection MSS %d\n", test->ctrl_sck_mss); |