[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 05/06: mhd_send: fixed for C90 compilers
From: |
gnunet |
Subject: |
[libmicrohttpd] 05/06: mhd_send: fixed for C90 compilers |
Date: |
Tue, 01 Dec 2020 17:12:39 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 34593987cab75ae7533bd79d3c1571e3ec6b5a39
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Nov 30 00:52:04 2020 +0300
mhd_send: fixed for C90 compilers
---
src/microhttpd/mhd_send.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 161c515e..8dbecdc2 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -452,6 +452,9 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection,
const char *buffer,
size_t buffer_size)
{
+ MHD_socket s = connection->socket_fd;
+ ssize_t ret;
+ struct iovec vector[2];
#ifdef HTTPS_SUPPORT
const bool tls_conn = (connection->daemon->options & MHD_USE_TLS);
#else /* ! HTTPS_SUPPORT */
@@ -471,10 +474,6 @@ MHD_send_on_connection2_ (struct MHD_Connection
*connection,
}
#endif
#if defined(HAVE_SENDMSG) || defined(HAVE_WRITEV)
- MHD_socket s = connection->socket_fd;
- ssize_t ret;
- struct iovec vector[2];
-
/* Since we generally give the fully answer, we do not want
corking to happen */
pre_cork_setsockopt (connection, tls_conn, false);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (7ef7bab3 -> 331bc629), gnunet, 2020/12/01
- [libmicrohttpd] 05/06: mhd_send: fixed for C90 compilers,
gnunet <=
- [libmicrohttpd] 03/06: mhd_send: fixed compatibility with platforms without TCP_CORK and TCP_NOPUSH, gnunet, 2020/12/01
- [libmicrohttpd] 04/06: Removed gnutls_record_(un)cork() usage., gnunet, 2020/12/01
- [libmicrohttpd] 02/06: mhd_send: prepare for removal of gnutls_record_cork() call, gnunet, 2020/12/01
- [libmicrohttpd] 06/06: mhd_send: renamed functions and parameters to reflect the key purpose., gnunet, 2020/12/01
- [libmicrohttpd] 01/06: mhd_send: use MSG_MORE only if it functions, gnunet, 2020/12/01