diff options
author | Stef Walter <stefw@gnome.org> | 2013-03-03 10:00:23 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-03-03 10:07:14 +0100 |
commit | bee435e09111f43dcc406160e9c9bdd8645fc86c (patch) | |
tree | 8ca133400350ede433cb110fef632a7905bf4129 /common | |
parent | 61e0cb5dddb89ddab1d68791eb28d892c114622f (diff) |
Fix syntax errors in OS_WIN32 ifdefs
Diffstat (limited to 'common')
-rw-r--r-- | common/compat.h | 4 | ||||
-rw-r--r-- | common/library.c | 6 |
2 files changed, 5 insertions, 5 deletions
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 */ |