aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/threading.dox4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/threading.dox b/doc/threading.dox
index 4860f54b..a11c82f7 100644
--- a/doc/threading.dox
+++ b/doc/threading.dox
@@ -25,7 +25,7 @@ use, using ssh_threads_set_callbacks(), then call ssh_init().
@code
#include <libssh/callbacks.h>
...
-ssh_threads_set_callbacks(ssh_threads_noop);
+ssh_threads_set_callbacks(ssh_threads_get_noop());
ssh_init();
@endcode
@@ -40,7 +40,7 @@ threading backend:
@code
#include <libssh/callbacks.h>
...
-ssh_threads_set_callbacks(ssh_threads_pthread);
+ssh_threads_set_callbacks(ssh_threads_get_pthread());
ssh_init();
@endcode