gnunet-svn
[Top][All Lists]
Advanced

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



reply via email to

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