gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 01/03: MHD_send_hdr_and_body_: deduplicated code


From: gnunet
Subject: [libmicrohttpd] 01/03: MHD_send_hdr_and_body_: deduplicated code
Date: Sun, 13 Dec 2020 17:43:50 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit ee8b31980686e127a36684073a5d411c7657671d
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Dec 13 17:39:08 2020 +0300

    MHD_send_hdr_and_body_: deduplicated code
---
 src/microhttpd/mhd_send.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 1f187902..d19d4a57 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -928,20 +928,17 @@ MHD_send_hdr_and_body_ (struct MHD_Connection *connection,
   vector[1].iov_len = body_size;
 
 #if HAVE_SENDMSG
-  memset (&msg, 0, sizeof(struct msghdr));
+  memset (&msg, 0, sizeof(msg));
   msg.msg_iov = vector;
   msg.msg_iovlen = 2;
 
   ret = sendmsg (s, &msg, MSG_NOSIGNAL_OR_ZERO);
-  if ( (-1 == ret) &&
-       (EAGAIN == errno) )
-    return MHD_ERR_AGAIN_;
 #elif HAVE_WRITEV
   ret = writev (s, vector, 2);
+#endif
   if ( (-1 == ret) &&
        (EAGAIN == errno) )
     return MHD_ERR_AGAIN_;
-#endif
 
   /* If there is a need to push the data from network buffers
    * call post_send_setopt(). */

-- 
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]