浏览代码

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