From f04c2a84ad2a017a778fa2f23719318acb9ca89f Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Fri, 20 Jul 2018 13:11:36 +0200 Subject: common, p11-kit, trust: Use pthread_once only when necessary If the ELF constructor is usable, we don't really need the once-init function because it is guaranteed that the code runs only once in the constructor. --- p11-kit/client-init.c | 2 +- p11-kit/proxy-init.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'p11-kit') diff --git a/p11-kit/client-init.c b/p11-kit/client-init.c index d016053..74e8905 100644 --- a/p11-kit/client-init.c +++ b/p11-kit/client-init.c @@ -64,7 +64,7 @@ __attribute__((constructor)) void _p11_kit_init (void) { - p11_library_init_once (); + p11_library_init (); } #ifdef __GNUC__ diff --git a/p11-kit/proxy-init.c b/p11-kit/proxy-init.c index 397949b..118478f 100644 --- a/p11-kit/proxy-init.c +++ b/p11-kit/proxy-init.c @@ -53,7 +53,7 @@ __attribute__((constructor)) void _p11_kit_init (void) { - p11_library_init_once (); + p11_library_init (); } #ifdef __GNUC__ -- cgit v1.1