[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 02/07: mhd_str: minor optimisation
From: |
gnunet |
Subject: |
[libmicrohttpd] 02/07: mhd_str: minor optimisation |
Date: |
Mon, 05 Jul 2021 16:07:43 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 8e0fdcad6c1a7a7d6d66c8410071197af08e2c63
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Jun 23 11:36:57 2021 +0300
mhd_str: minor optimisation
---
src/microhttpd/mhd_str.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/mhd_str.c b/src/microhttpd/mhd_str.c
index 41697951..b7fb54ee 100644
--- a/src/microhttpd/mhd_str.c
+++ b/src/microhttpd/mhd_str.c
@@ -232,7 +232,7 @@ charsequalcaseless (const char c1, const char c2)
return ( (c1 == c2) ||
(isasciiupper (c1) ?
((c1 - 'A' + 'a') == c2) :
- (isasciiupper (c2) && (c1 == (c2 - 'A' + 'a')))) );
+ ((c1 == (c2 - 'A' + 'a')) && isasciiupper (c2))) );
}
@@ -360,7 +360,7 @@ charsequalcaseless (const char c1, const char c2)
( ((c1) == (c2)) || \
(isasciiupper (c1) ? \
(((c1) - 'A' + 'a') == (c2)) : \
- (isasciiupper (c2) && ((c1) == ((c2) - 'A' + 'a')))) )
+ (((c1) == ((c2) - 'A' + 'a')) && isasciiupper (c2))) )
#endif /* !INLINE_FUNC */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (64e91ef6 -> e1693575), gnunet, 2021/07/05
- [libmicrohttpd] 03/07: Corrected internal doxy, gnunet, 2021/07/05
- [libmicrohttpd] 04/07: MHD_del_response_header(): removed unused variable, gnunet, 2021/07/05
- [libmicrohttpd] 02/07: mhd_str: minor optimisation,
gnunet <=
- [libmicrohttpd] 01/07: mhd_str: minor code refactoring, gnunet, 2021/07/05
- [libmicrohttpd] 06/07: Added MHD_str_remove_tokens_caseless_() function, gnunet, 2021/07/05
- [libmicrohttpd] 05/07: Added MHD_str_remove_token_caseless_() function, gnunet, 2021/07/05
- [libmicrohttpd] 07/07: response: process "Connection" header in a special manner, gnunet, 2021/07/05