Minor format fix

This commit is contained in:
Linus Yang
2018-03-12 13:16:37 +08:00
parent ca51c60ee7
commit 3f00e533bf
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -381,8 +381,8 @@ server_recv_cb(EV_P_ ev_io *w, int revents)
do {
int optval = 1;
// Set fast open option
if(setsockopt(remote->fd, IPPROTO_TCP, TCP_FASTOPEN,
&optval, sizeof(optval)) != 0) {
if (setsockopt(remote->fd, IPPROTO_TCP, TCP_FASTOPEN,
&optval, sizeof(optval)) != 0) {
ERROR("setsockopt");
break;
}
+2 -2
View File
@@ -527,8 +527,8 @@ connect_to_remote(EV_P_ struct addrinfo *res,
do {
int optval = 1;
// Set fast open option
if(setsockopt(sockfd, IPPROTO_TCP, TCP_FASTOPEN,
&optval, sizeof(optval)) != 0) {
if (setsockopt(sockfd, IPPROTO_TCP, TCP_FASTOPEN,
&optval, sizeof(optval)) != 0) {
ERROR("setsockopt");
break;
}