[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 03/22: mhd_locks.h: cosmetics
From: |
gnunet |
Subject: |
[libmicrohttpd] 03/22: mhd_locks.h: cosmetics |
Date: |
Sun, 25 Sep 2022 17:43:38 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit de88268e7369c0d70bdf6298d78e31f57bcfacb7
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Sep 22 15:52:38 2022 +0300
mhd_locks.h: cosmetics
---
src/microhttpd/mhd_locks.h | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/src/microhttpd/mhd_locks.h b/src/microhttpd/mhd_locks.h
index 654ecb6c..ad9fa20e 100644
--- a/src/microhttpd/mhd_locks.h
+++ b/src/microhttpd/mhd_locks.h
@@ -62,10 +62,11 @@
# include <stdlib.h>
# endif /* HAVE_STDLIB_H */
/* Simple implementation of MHD_PANIC, to be used outside lib */
-# define MHD_PANIC(msg) do { fprintf (stderr, \
- "Abnormal termination at %d line in
file %s: %s\n", \
- (int) __LINE__, __FILE__, msg); abort
(); \
-} while (0)
+# define MHD_PANIC(msg) \
+ do { fprintf (stderr, \
+ "Abnormal termination at %d line in file %s: %s\n", \
+ (int) __LINE__, __FILE__, msg); abort (); \
+ } while (0)
#endif /* ! MHD_PANIC */
#if defined(MHD_PTHREAD_MUTEX_)
@@ -87,8 +88,8 @@ typedef CRITICAL_SECTION MHD_mutex_;
* @param pmutex pointer to mutex
* @return nonzero on success, zero otherwise
*/
-#define MHD_mutex_init_(pmutex) (InitializeCriticalSectionAndSpinCount ( \
- (pmutex),16))
+#define MHD_mutex_init_(pmutex) \
+ (InitializeCriticalSectionAndSpinCount ((pmutex),16))
#endif
#if defined(MHD_PTHREAD_MUTEX_)
@@ -96,8 +97,8 @@ typedef CRITICAL_SECTION MHD_mutex_;
/**
* Define static mutex and statically initialise it.
*/
-# define MHD_MUTEX_STATIC_DEFN_INIT_(m) static MHD_mutex_ m = \
- PTHREAD_MUTEX_INITIALIZER
+# define MHD_MUTEX_STATIC_DEFN_INIT_(m) \
+ static MHD_mutex_ m = PTHREAD_MUTEX_INITIALIZER
# endif /* PTHREAD_MUTEX_INITIALIZER */
#endif
@@ -125,7 +126,7 @@ typedef CRITICAL_SECTION MHD_mutex_;
#define MHD_mutex_destroy_chk_(pmutex) do { \
if (! MHD_mutex_destroy_ (pmutex)) \
MHD_PANIC (_ ("Failed to destroy mutex.\n")); \
-} while (0)
+ } while (0)
#if defined(MHD_PTHREAD_MUTEX_)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (8318f56e -> b6dcf9d2), gnunet, 2022/09/25
- [libmicrohttpd] 03/22: mhd_locks.h: cosmetics,
gnunet <=
- [libmicrohttpd] 04/22: mhd_options: use standard _MHD_EXTERN if file used outside the library, gnunet, 2022/09/25
- [libmicrohttpd] 01/22: Fixed regression introduced by c3680cb737bcac2a4dc14cca5a80af6ca0de21e7, gnunet, 2022/09/25
- [libmicrohttpd] 06/22: sha256: implemented compact code version, similarly to SHA-512/256, gnunet, 2022/09/25
- [libmicrohttpd] 05/22: sha256: backported minor optimisations from SHA-512/256, gnunet, 2022/09/25
- [libmicrohttpd] 02/22: Fixed initialisation of old GnuTLS versions, gnunet, 2022/09/25
- [libmicrohttpd] 10/22: md5: added compact code version, gnunet, 2022/09/25
- [libmicrohttpd] 14/22: test_{md5,sha{256,512_256}}: added long test sequence, gnunet, 2022/09/25
- [libmicrohttpd] 07/22: sha512_256: additional trick for compacter code; doxy and comment fixes, gnunet, 2022/09/25
- [libmicrohttpd] 09/22: md5: improved performance of the first round on LE arches, gnunet, 2022/09/25
- [libmicrohttpd] 17/22: digestauth: removed redundant check and report, gnunet, 2022/09/25