[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] branch master updated: fix fwd ref to MHD_i
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] branch master updated: fix fwd ref to MHD_init |
Date: |
Wed, 21 Feb 2018 10:22:23 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new dae20dfe fix fwd ref to MHD_init
dae20dfe is described below
commit dae20dfe73b57ff796bda6379ae98486efa49881
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Feb 21 10:22:18 2018 +0100
fix fwd ref to MHD_init
---
src/lib/init.c | 40 +++++++++++++++++++++-------------------
1 file changed, 21 insertions(+), 19 deletions(-)
diff --git a/src/lib/init.c b/src/lib/init.c
index d3965763..8da693a9 100644
--- a/src/lib/init.c
+++ b/src/lib/init.c
@@ -43,24 +43,6 @@ MHD_MUTEX_STATIC_DEFN_INIT_(global_init_mutex_);
/**
- * Check whether global initialisation was performed
- * and call initialiser if necessary.
- */
-void
-MHD_check_global_init_ (void)
-{
-#ifdef MHD_MUTEX_STATIC_DEFN_INIT_
- MHD_mutex_lock_chk_(&global_init_mutex_);
-#endif /* MHD_MUTEX_STATIC_DEFN_INIT_ */
- if (0 == global_init_count++)
- MHD_init ();
-#ifdef MHD_MUTEX_STATIC_DEFN_INIT_
- MHD_mutex_unlock_chk_(&global_init_mutex_);
-#endif /* MHD_MUTEX_STATIC_DEFN_INIT_ */
-}
-
-
-/**
* Default implementation of the panic function,
* prints an error message and aborts.
*
@@ -134,5 +116,25 @@ MHD_fini (void)
}
#ifdef _AUTOINIT_FUNCS_ARE_SUPPORTED
+
_SET_INIT_AND_DEINIT_FUNCS(MHD_init, MHD_fini);
-#endif /* _AUTOINIT_FUNCS_ARE_SUPPORTED */
+
+#else
+
+/**
+ * Check whether global initialisation was performed
+ * and call initialiser if necessary.
+ */
+void
+MHD_check_global_init_ (void)
+{
+#ifdef MHD_MUTEX_STATIC_DEFN_INIT_
+ MHD_mutex_lock_chk_(&global_init_mutex_);
+#endif /* MHD_MUTEX_STATIC_DEFN_INIT_ */
+ if (0 == global_init_count++)
+ MHD_init ();
+#ifdef MHD_MUTEX_STATIC_DEFN_INIT_
+ MHD_mutex_unlock_chk_(&global_init_mutex_);
+#endif /* MHD_MUTEX_STATIC_DEFN_INIT_ */
+}
+#endif
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [libmicrohttpd] branch master updated: fix fwd ref to MHD_init,
gnunet <=