From bee435e09111f43dcc406160e9c9bdd8645fc86c Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sun, 3 Mar 2013 10:00:23 +0100 Subject: Fix syntax errors in OS_WIN32 ifdefs --- common/compat.h | 4 ++-- common/library.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'common') diff --git a/common/compat.h b/common/compat.h index d4858f0..a6a02af 100644 --- a/common/compat.h +++ b/common/compat.h @@ -127,9 +127,9 @@ typedef DWORD p11_thread_id_t; typedef void * (*p11_thread_routine) (void *arg); -int p11_thread_create (thread_t *thread, thread_routine, void *arg); +int p11_thread_create (p11_thread_t *thread, p11_thread_routine, void *arg); -int p11_thread_join (thread_t thread); +int p11_thread_join (p11_thread_t thread); /* Returns a thread_id_t */ #define p11_thread_id_self() \ diff --git a/common/library.c b/common/library.c index 0bc7e0c..64b8baf 100644 --- a/common/library.c +++ b/common/library.c @@ -234,7 +234,7 @@ p11_library_init (void) void p11_library_thread_cleanup (void) { - p11_local *local = data; + p11_local *local; if (thread_local != TLS_OUT_OF_INDEXES) { p11_debug ("thread stopped, freeing tls"); local = TlsGetValue (thread_local); @@ -253,10 +253,10 @@ p11_library_uninit (void) if (thread_local != TLS_OUT_OF_INDEXES) { data = TlsGetValue (thread_local); - free_tls_value (data); + free (data); TlsFree (thread_local); } - _p11_mutex_uninit (&p11_library_mutex); + p11_mutex_uninit (&p11_library_mutex); } #endif /* OS_WIN32 */ -- cgit v1.1