[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 01/03: mhd_str: minor improvement
From: |
gnunet |
Subject: |
[libmicrohttpd] 01/03: mhd_str: minor improvement |
Date: |
Mon, 01 Nov 2021 19:09:45 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 317691bc9736ade7d825b1eb3034fd744bacbae7
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Nov 1 21:01:47 2021 +0300
mhd_str: minor improvement
---
src/microhttpd/mhd_str.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/microhttpd/mhd_str.c b/src/microhttpd/mhd_str.c
index 473ff466..540ff228 100644
--- a/src/microhttpd/mhd_str.c
+++ b/src/microhttpd/mhd_str.c
@@ -384,10 +384,7 @@ MHD_str_equal_caseless_ (const char *str1,
{
const char c1 = *str1;
const char c2 = *str2;
- if ( (c1 == c2) ||
- (isasciiupper (c1) ?
- ((c1 - 'A' + 'a') == c2) :
- (isasciiupper (c2) && (c1 == (c2 - 'A' + 'a')))) )
+ if (charsequalcaseless (c1, c2))
{
str1++;
str2++;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.