[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 27/156: test_http_reasons: fixed compiler warnings
From: |
gnunet |
Subject: |
[libmicrohttpd] 27/156: test_http_reasons: fixed compiler warnings |
Date: |
Sun, 28 May 2023 17:51:20 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.
commit b4bab00c4e8d64f1312e73a8133c788cbf18a880
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Jun 13 21:27:32 2022 +0300
test_http_reasons: fixed compiler warnings
---
src/microhttpd/test_http_reasons.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/microhttpd/test_http_reasons.c
b/src/microhttpd/test_http_reasons.c
index 6a0b24b9..19bbcde3 100644
--- a/src/microhttpd/test_http_reasons.c
+++ b/src/microhttpd/test_http_reasons.c
@@ -33,7 +33,7 @@ static const char *const r_unknown = "unknown";
/* Return zero when no error is detected */
static int
-expect_result (int code, const char *expected)
+expect_result (unsigned int code, const char *expected)
{
const char *const reason = MHD_get_reason_phrase_for (code);
const size_t len = MHD_get_reason_phrase_len_for (code);
@@ -41,7 +41,7 @@ expect_result (int code, const char *expected)
if (! MHD_str_equal_caseless_ (reason, expected))
{
fprintf (stderr,
- "Incorrect reason returned for code %d:\n Returned: \"%s\"
\tExpected: \"%s\"\n",
+ "Incorrect reason returned for code %u:\n Returned: \"%s\"
\tExpected: \"%s\"\n",
code, reason, expected);
return 1;
}
@@ -52,7 +52,7 @@ expect_result (int code, const char *expected)
if (exp_len != len)
{
fprintf (stderr,
- "Incorrect reason length returned for code %d:\n Returned:
\"%u\" \tExpected: \"%u\"\n",
+ "Incorrect reason length returned for code %u:\n Returned:
\"%u\" \tExpected: \"%u\"\n",
code, (unsigned) len, (unsigned) exp_len);
return 1;
}
@@ -61,7 +61,7 @@ expect_result (int code, const char *expected)
static int
-expect_absent (int code)
+expect_absent (unsigned int code)
{
return expect_result (code, r_unknown);
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 34/156: daemon: fixed delayed notification callback in thread-per-connection mode, (continued)
- [libmicrohttpd] 34/156: daemon: fixed delayed notification callback in thread-per-connection mode, gnunet, 2023/05/28
- [libmicrohttpd] 38/156: test_upgrade{,_large}: fixed HTTP/1.1 compatibility, gnunet, 2023/05/28
- [libmicrohttpd] 42/156: configure: try to detect whether eventfd is enabled, gnunet, 2023/05/28
- [libmicrohttpd] 35/156: mhd_assert: use "DEBUG" macro defined by some toolchains, gnunet, 2023/05/28
- [libmicrohttpd] 33/156: mhd_str: fixed compiler warning for compact code, gnunet, 2023/05/28
- [libmicrohttpd] 26/156: Fixed very rare data races when closing upgraded connection, gnunet, 2023/05/28
- [libmicrohttpd] 30/156: configure: fixed underquoting, typos, wording, gnunet, 2023/05/28
- [libmicrohttpd] 32/156: configure: fixed typos in messages, gnunet, 2023/05/28
- [libmicrohttpd] 23/156: Fixed wrong variable type used for result of gnutls_priority_init(), gnunet, 2023/05/28
- [libmicrohttpd] 41/156: configure: used better detection of some functions when cross-compiling, gnunet, 2023/05/28
- [libmicrohttpd] 27/156: test_http_reasons: fixed compiler warnings,
gnunet <=
- [libmicrohttpd] 29/156: Remove double adding of MHD_HTTP_HEADER_CONNECTION response header, gnunet, 2023/05/28
- [libmicrohttpd] 31/156: connection: skip no-op calling of body generation functions when response body is not used, gnunet, 2023/05/28
- [libmicrohttpd] 43/156: -typo, gnunet, 2023/05/28
- [libmicrohttpd] 21/156: internal.h: fixed incorrect use of enum value as preprocessor value, gnunet, 2023/05/28
- [libmicrohttpd] 40/156: Added new M4 helper macro, gnunet, 2023/05/28
- [libmicrohttpd] 39/156: test_get_iovec: fixed missing include headers, gnunet, 2023/05/28
- [libmicrohttpd] 45/156: MHD_get_version_bin(): added new function, gnunet, 2023/05/28
- [libmicrohttpd] 44/156: add assertion to guard against bad behavior described in #7196, also document that after suspending one must return MHD_YES, gnunet, 2023/05/28
- [libmicrohttpd] 49/156: mhd_check_func.m4: fixed macro, gnunet, 2023/05/28
- [libmicrohttpd] 46/156: mhd_norm_expd.m4: added autoconf helper macro, gnunet, 2023/05/28