[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 01/02: mhd_send.c: fixed warnings
From: |
gnunet |
Subject: |
[libmicrohttpd] 01/02: mhd_send.c: fixed warnings |
Date: |
Sun, 13 Dec 2020 19:28:01 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit ef091c941a27c3b0b89fa658b797e5618ed6e1d8
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Dec 13 20:54:32 2020 +0300
mhd_send.c: fixed warnings
---
src/microhttpd/mhd_send.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 246e6c96..11de6a19 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -235,7 +235,6 @@ pre_send_setopt (struct MHD_Connection *connection,
bool plain_send,
bool push_data)
{
- int ret;
/* Try to buffer data if not sending the final piece.
* Final piece is indicated by push_data == true. */
const bool buffer_data = (! push_data);
@@ -495,7 +494,6 @@ post_send_setopt (struct MHD_Connection *connection,
bool plain_send_next,
bool push_data)
{
- int ret;
/* Try to buffer data if not sending the final piece.
* Final piece is indicated by push_data == true. */
const bool buffer_data = (! push_data);
@@ -855,7 +853,8 @@ MHD_send_hdr_and_body_ (struct MHD_Connection *connection,
header,
header_size,
push_hdr);
- if ( ((size_t) header_size == ret) &&
+
+ if ( (header_size == (size_t) ret) &&
(((size_t) SSIZE_MAX > header_size)) &&
(0 != body_size) )
{
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.