]> granicus.if.org Git - check/commitdiff
Case void* to pthread_mutex_t before passing to unlock
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 23 Jun 2014 04:13:37 +0000 (04:13 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 23 Jun 2014 04:13:37 +0000 (04:13 +0000)
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

index 2174c5194238d41d70f5f65a3c8b881fc5c7051a..8ed0a85837845309136449b80f17f9bb39010f8d 100644 (file)
@@ -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