[Pkg-voip-commits] [janus] 62/163: turnrest: use JANUS_MUTEX_INITIALIZER

Jonas Smedegaard dr at jones.dk
Sat Oct 28 01:22:10 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/0.2.5-1
in repository janus.

commit c50705c733b03db0bde67fd2d72cd2ab21ccaf93
Author: Tristan Matthews <tmatth at videolan.org>
Date:   Wed Aug 2 09:24:27 2017 -0400

    turnrest: use JANUS_MUTEX_INITIALIZER
---
 turnrest.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/turnrest.c b/turnrest.c
index 6e43444..170b415 100644
--- a/turnrest.c
+++ b/turnrest.c
@@ -30,7 +30,7 @@
 static const char *api_server = NULL;
 static const char *api_key = NULL;
 static gboolean api_http_get = FALSE;
-static janus_mutex api_mutex;
+static janus_mutex api_mutex = JANUS_MUTEX_INITIALIZER;
 
 
 /* Buffer we use to receive the response via libcurl */
@@ -62,7 +62,6 @@ static size_t janus_turnrest_callback(void *payload, size_t size, size_t nmemb,
 void janus_turnrest_init(void) {
 	/* Initialize libcurl, needed for contacting the TURN REST API backend */
 	curl_global_init(CURL_GLOBAL_ALL);
-	janus_mutex_init(&api_mutex);
 }
 
 void janus_turnrest_deinit(void) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/janus.git



More information about the Pkg-voip-commits mailing list