gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]