[vlc-devel] [PATCH 2/2] httpd: Reindent after last change
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Thu Jun 11 12:59:30 CEST 2020
---
src/network/httpd.c | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/src/network/httpd.c b/src/network/httpd.c
index 0d0ca2ec66..44741edd61 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -1610,28 +1610,28 @@ static int httpd_ClientSend(httpd_client_t *cl)
}
if (cl->i_buffer_size != cl->i_buffer) {
- i_len = httpd_NetSend(cl, &cl->p_buffer[cl->i_buffer],
- cl->i_buffer_size - cl->i_buffer);
+ i_len = httpd_NetSend(cl, &cl->p_buffer[cl->i_buffer],
+ cl->i_buffer_size - cl->i_buffer);
- if (i_len == 0) {
- cl->i_state = HTTPD_CLIENT_DEAD; /* connection closed */
- return 0;
- }
-
- if (i_len < 0) {
-#if defined(_WIN32)
- if (WSAGetLastError() == WSAEWOULDBLOCK)
-#else
- if (errno == EAGAIN)
-#endif
- return -1;
+ if (i_len == 0) {
+ cl->i_state = HTTPD_CLIENT_DEAD; /* connection closed */
+ return 0;
+ }
- /* Connection failed, or hung up (EPIPE) */
- cl->i_state = HTTPD_CLIENT_DEAD;
- return 0;
- }
+ if (i_len < 0) {
+ #if defined(_WIN32)
+ if (WSAGetLastError() == WSAEWOULDBLOCK)
+ #else
+ if (errno == EAGAIN)
+ #endif
+ return -1;
+
+ /* Connection failed, or hung up (EPIPE) */
+ cl->i_state = HTTPD_CLIENT_DEAD;
+ return 0;
+ }
- cl->i_buffer += i_len;
+ cl->i_buffer += i_len;
}
if (cl->i_buffer >= cl->i_buffer_size) {
--
2.20.1
More information about the vlc-devel
mailing list