summaryrefslogtreecommitdiff
path: root/src/common/socket.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-07-02 18:59:30 +0200
committerHaru <haru@dotalux.com>2016-07-02 18:59:30 +0200
commit657d772c70e07afc2188c200247f73f03879884d (patch)
tree8cc574e9b772a975027839762f48d752c3334d21 /src/common/socket.c
parent0b7498bd5c252094fd429b46be847dcd24066a2e (diff)
downloadhercules-657d772c70e07afc2188c200247f73f03879884d.tar.gz
hercules-657d772c70e07afc2188c200247f73f03879884d.tar.bz2
hercules-657d772c70e07afc2188c200247f73f03879884d.tar.xz
hercules-657d772c70e07afc2188c200247f73f03879884d.zip
Trivialities: indentation fixes
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/socket.c')
-rw-r--r--src/common/socket.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index 5d4ea06a0..75b6128b6 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -380,12 +380,12 @@ void setsocketopts(int fd, struct hSockOpt *opt)
ShowWarning("setsocketopts: Unable to set SO_LINGER mode for connection #%d!\n", fd);
#ifdef TCP_THIN_LINEAR_TIMEOUTS
- if (sSetsockopt(fd, IPPROTO_TCP, TCP_THIN_LINEAR_TIMEOUTS, (char *)&yes, sizeof(yes)))
- ShowWarning("setsocketopts: Unable to set TCP_THIN_LINEAR_TIMEOUTS mode for connection #%d!\n", fd);
+ if (sSetsockopt(fd, IPPROTO_TCP, TCP_THIN_LINEAR_TIMEOUTS, (char *)&yes, sizeof(yes)))
+ ShowWarning("setsocketopts: Unable to set TCP_THIN_LINEAR_TIMEOUTS mode for connection #%d!\n", fd);
#endif
#ifdef TCP_THIN_DUPACK
- if (sSetsockopt(fd, IPPROTO_TCP, TCP_THIN_DUPACK, (char *)&yes, sizeof(yes)))
- ShowWarning("setsocketopts: Unable to set TCP_THIN_DUPACK mode for connection #%d!\n", fd);
+ if (sSetsockopt(fd, IPPROTO_TCP, TCP_THIN_DUPACK, (char *)&yes, sizeof(yes)))
+ ShowWarning("setsocketopts: Unable to set TCP_THIN_DUPACK mode for connection #%d!\n", fd);
#endif
}