소스 검색

Format code

bel2125 7 년 전
부모
커밋
9fc1e253be
1개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 5
      src/civetweb.c

+ 3 - 5
src/civetweb.c

@@ -8827,8 +8827,8 @@ connect_socket(struct mg_context *ctx /* may be NULL */,
 		DWORD err = WSAGetLastError(); /* could return WSAEWOULDBLOCK */
 		conn_ret = (int)err;
 #if !defined(EINPROGRESS)
-#	define EINPROGRESS (WSAEWOULDBLOCK) /* Winsock equivalent */
-#endif /* if !defined(EINPROGRESS) */
+#define EINPROGRESS (WSAEWOULDBLOCK) /* Winsock equivalent */
+#endif                               /* if !defined(EINPROGRESS) */
 	}
 #endif
 
@@ -17732,9 +17732,7 @@ worker_thread_run(struct worker_thread_args *thread_args)
 					mg_free(conn->request_info.client_cert);
 					conn->request_info.client_cert = 0;
 				}
-			}
-			else
-			{
+			} else {
 				/* make sure the connection is cleaned up on SSL failure */
 				close_connection(conn);
 			}