diff options
author | Daiki Ueno <dueno@redhat.com> | 2018-07-20 13:11:36 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2018-08-10 10:11:24 +0200 |
commit | f04c2a84ad2a017a778fa2f23719318acb9ca89f (patch) | |
tree | 3fe93175e0966d29d3bf015c9bb9dd7498e65870 /p11-kit | |
parent | 5b18e77e9dbb6a598812427ba07ad6df63eb7a67 (diff) |
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.
Diffstat (limited to 'p11-kit')
-rw-r--r-- | p11-kit/client-init.c | 2 | ||||
-rw-r--r-- | p11-kit/proxy-init.c | 2 |
2 files changed, 2 insertions, 2 deletions
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__ |