projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cde09b5
)
[network] set_thread_cbs so we initialize the right threading mode in gcry_check_version
author
Chris Lundquist
<chris.lundquist@github.com>
Wed, 15 Jan 2014 02:33:13 +0000
(18:33 -0800)
committer
Florian Forster
<octo@collectd.org>
Wed, 15 Jan 2014 22:26:26 +0000
(23:26 +0100)
Signed-off-by: Florian Forster <octo@collectd.org>
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
d0ff6bc
..
be82c6f
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-500,8
+500,8
@@
static void network_init_gcrypt (void) /* {{{ */
if (gcry_control (GCRYCTL_ANY_INITIALIZATION_P))
return;
- gcry_check_version (NULL); /* before calling any other functions */
gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
+ gcry_check_version (NULL); /* before calling *almost* any other functions */
gcry_control (GCRYCTL_INIT_SECMEM, 32768);
gcry_control (GCRYCTL_INITIALIZATION_FINISHED);
} /* }}} void network_init_gcrypt */