[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 08/09: test_http_reasons: fixed compiler warnings
From: |
gnunet |
Subject: |
[libmicrohttpd] 08/09: test_http_reasons: fixed compiler warnings |
Date: |
Mon, 13 Jun 2022 20:28:39 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 7d7085b627eea92447307e15d6195d0c6c64bd27
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] branch master updated (6884fa83 -> 9668d71f), gnunet, 2022/06/13
- [libmicrohttpd] 04/09: test_postprocessor{,_amp,_large}: fixed compiler warnings, fixed extra-long strings, gnunet, 2022/06/13
- [libmicrohttpd] 02/09: postprocessor.c: added assert, gnunet, 2022/06/13
- [libmicrohttpd] 03/09: test_postprocessor_md: removed include of .c file, fixed extra long lines, gnunet, 2022/06/13
- [libmicrohttpd] 08/09: test_http_reasons: fixed compiler warnings,
gnunet <=
- [libmicrohttpd] 09/09: test_start_stop: fixed compiler warnings, gnunet, 2022/06/13
- [libmicrohttpd] 05/09: test_str: minor refactoring, fixed compiler warnings, gnunet, 2022/06/13
- [libmicrohttpd] 01/09: postprocessor.h: added new internal header, gnunet, 2022/06/13
- [libmicrohttpd] 07/09: test_daemon: fixed compiler warnings, gnunet, 2022/06/13
- [libmicrohttpd] 06/09: test_str_token{,s,s_remove}: fixed compiler warnings, gnunet, 2022/06/13