gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 01/04: test_set_panic: fixed compiler warnings


From: gnunet
Subject: [libmicrohttpd] 01/04: test_set_panic: fixed compiler warnings
Date: Fri, 13 May 2022 14:19:52 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 0d78994dd1eb1dd9fc51ffb4d910cba5ce04b3fa
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu May 12 16:54:40 2022 +0300

    test_set_panic: fixed compiler warnings
---
 src/microhttpd/test_set_panic.c | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/src/microhttpd/test_set_panic.c b/src/microhttpd/test_set_panic.c
index b1a24000..935312a7 100644
--- a/src/microhttpd/test_set_panic.c
+++ b/src/microhttpd/test_set_panic.c
@@ -213,6 +213,8 @@ _mhdErrorExit_func (const char *errDesc, const char 
*funcName, int lineNum)
 }
 
 
+#ifndef MHD_POSIX_SOCKETS
+
 /**
  * Pause execution for specified number of milliseconds.
  * @param ms the number of milliseconds to sleep
@@ -253,6 +255,8 @@ _MHD_sleep (uint32_t ms)
 }
 
 
+#endif /* ! MHD_POSIX_SOCKETS */
+
 /* Global parameters */
 static int verbose;                 /**< Be verbose */
 static uint16_t global_port;        /**< MHD daemons listen port number */
@@ -1121,12 +1125,6 @@ struct simpleQueryParams
   /* Non-zero to use chunked encoding for request body */
   int chunked;
 
-  /* Max size of data for single 'send()' call */
-  size_t step_size;
-
-  /* Limit for total amount of sent data */
-  size_t total_send_max;
-
   /* HTTP query result error flag */
   volatile int queryError;
 
@@ -1311,7 +1309,7 @@ doClientQueryInThread (struct MHD_Daemon *d,
   c = _MHD_dumbClient_create (p->queryPort, p->method, p->queryPath,
                               p->headers, p->req_body, p->req_body_size,
                               p->chunked);
-  _MHD_dumbClient_set_send_limits (c, p->step_size, p->total_send_max);
+  _MHD_dumbClient_set_send_limits (c, 1, 0);
 
   /* 'internal' polling should not be used in this test */
   mhd_assert (use_external_poll);
@@ -1347,7 +1345,6 @@ performTestQueries (struct MHD_Daemon *d, uint16_t d_port,
   qParam.req_body = (const uint8_t *) REQ_BODY;
   qParam.req_body_size = MHD_STATICSTR_LEN_ (REQ_BODY);
   qParam.chunked = 0;
-  qParam.step_size = 0;
 
   ahc_param->rq_url = EXPECTED_URI_BASE_PATH;
   ahc_param->rq_method = MHD_HTTP_METHOD_PUT;

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