mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-28 04:09:31 +03:00
-fix type to ensure that comparisson will always work
This commit is contained in:
@@ -364,7 +364,7 @@ connection_close_error (struct MHD_Connection *connection,
|
||||
static int
|
||||
try_ready_normal_body (struct MHD_Connection *connection)
|
||||
{
|
||||
int ret;
|
||||
ssize_t ret;
|
||||
struct MHD_Response *response;
|
||||
|
||||
response = connection->response;
|
||||
@@ -433,7 +433,7 @@ try_ready_normal_body (struct MHD_Connection *connection)
|
||||
static int
|
||||
try_ready_chunked_body (struct MHD_Connection *connection)
|
||||
{
|
||||
int ret;
|
||||
ssize_t ret;
|
||||
char *buf;
|
||||
struct MHD_Response *response;
|
||||
size_t size;
|
||||
@@ -508,7 +508,7 @@ try_ready_chunked_body (struct MHD_Connection *connection)
|
||||
ret = 0xFFFFFF;
|
||||
snprintf (cbuf,
|
||||
sizeof (cbuf),
|
||||
"%X\r\n", ret);
|
||||
"%X\r\n", (unsigned int) ret);
|
||||
cblen = strlen (cbuf);
|
||||
EXTRA_CHECK (cblen <= sizeof (cbuf));
|
||||
memcpy (&connection->write_buffer[sizeof (cbuf) - cblen], cbuf, cblen);
|
||||
|
||||
+1
-1
@@ -1783,7 +1783,7 @@ parse_options_va (struct MHD_Daemon *daemon,
|
||||
break;
|
||||
case MHD_OPTION_THREAD_POOL_SIZE:
|
||||
daemon->worker_pool_size = va_arg (ap, unsigned int);
|
||||
if (daemon->worker_pool_size >= SIZE_MAX / sizeof (struct MHD_Daemon))
|
||||
if (daemon->worker_pool_size >= (SIZE_MAX / sizeof (struct MHD_Daemon)))
|
||||
{
|
||||
#if HAVE_MESSAGES
|
||||
MHD_DLOG (daemon,
|
||||
|
||||
Reference in New Issue
Block a user