From be350f1266cd8abe08bfa04eab319097a702aa12 Mon Sep 17 00:00:00 2001 From: brarcher Date: Mon, 23 Jun 2014 04:13:37 +0000 Subject: [PATCH] Case void* to pthread_mutex_t before passing to unlock This change was necessary to get Check to compile on a c++ compiler git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1161 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- src/check_pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check_pack.c b/src/check_pack.c index 2174c51..8ed0a85 100644 --- a/src/check_pack.c +++ b/src/check_pack.c @@ -292,7 +292,7 @@ static void check_type(int type, const char *file, int line) static pthread_mutex_t ck_mutex_lock = PTHREAD_MUTEX_INITIALIZER; static void ppack_cleanup(void *mutex) { - pthread_mutex_unlock(mutex); + pthread_mutex_unlock((pthread_mutex_t *)mutex); } #endif -- 2.40.0