libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit ef091c941a27c3b0b89fa658b797e5618ed6e1d8
parent a120d27045cb9f5408a07cf2df0716ba7b3eabf4
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 13 Dec 2020 20:54:32 +0300

mhd_send.c: fixed warnings

Diffstat:
Msrc/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 @@ -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) ) {