gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]