Commit cddb6996 authored by Evan Hunt's avatar Evan Hunt Committed by Witold Krecicki
Browse files

style nits

parent 700614a0
......@@ -2348,12 +2348,14 @@ set_sndbuf(void) {
}
}
#endif
if (fd == -1)
if (fd == -1) {
return;
}
len = sizeof(min);
if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, (void *)&min, &len) == 0 &&
min < sndbuf) {
min < sndbuf)
{
again:
if (setsockopt(fd, SOL_SOCKET, SO_SNDBUF, (void *)&sndbuf,
sizeof(sndbuf)) == -1) {
......@@ -2365,8 +2367,9 @@ set_sndbuf(void) {
sndbuf = min;
goto cleanup;
}
} else
} else {
min = sndbuf;
}
if (min != max) {
sndbuf = max;
goto again;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment