From 42f547056e360fe704c2b9e14643d6eabad472ff Mon Sep 17 00:00:00 2001 From: chenwei Date: Sat, 24 Feb 2018 17:08:59 +0800 Subject: [PATCH] Nginx: revise indent. --- app/nginx-1.11.10/src/event/modules/ngx_ff_module.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/nginx-1.11.10/src/event/modules/ngx_ff_module.c b/app/nginx-1.11.10/src/event/modules/ngx_ff_module.c index 0bef51773..480450977 100644 --- a/app/nginx-1.11.10/src/event/modules/ngx_ff_module.c +++ b/app/nginx-1.11.10/src/event/modules/ngx_ff_module.c @@ -210,8 +210,8 @@ int fstack_territory(int domain, int type, int protocol) { /* Remove creation flags */ - type &= ~SOCK_CLOEXEC; - type &= ~SOCK_NONBLOCK; + type &= ~SOCK_CLOEXEC; + type &= ~SOCK_NONBLOCK; type &= ~SOCK_FSTACK; if ((AF_INET != domain) || (SOCK_STREAM != type && SOCK_DGRAM != type)) { @@ -233,9 +233,9 @@ socket(int domain, int type, int protocol) return SYSCALL(socket)(domain, type, protocol); } - if (unlikely((type & SOCK_FSTACK) == 0)) { - return SYSCALL(socket)(domain, type, protocol); - } + if (unlikely((type & SOCK_FSTACK) == 0)) { + return SYSCALL(socket)(domain, type, protocol); + } type &= ~SOCK_FSTACK; sock = ff_socket(domain, type, protocol); @@ -287,7 +287,7 @@ sendto(int sockfd, const void *buf, size_t len, int flags, if(is_fstack_fd(sockfd)){ sockfd = restore_fstack_fd(sockfd); return ff_sendto(sockfd, buf, len, flags, - (struct linux_sockaddr *)dest_addr, addrlen); + (struct linux_sockaddr *)dest_addr, addrlen); } return SYSCALL(sendto)(sockfd, buf, len, flags, dest_addr, addrlen);