aboutsummaryrefslogtreecommitdiff
path: root/src/threads
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-09-12 21:45:53 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-09-12 21:45:53 +0200
commitb7af2b29594a19dec5f71eb9412bd2a7a5b1e9ac (patch)
treed12aa37c51f001b9c99433968e90a3749bdcebd6 /src/threads
parent9f02a817ff23b3b100d9d750efa3589cee61b95e (diff)
downloadlibssh-b7af2b29594a19dec5f71eb9412bd2a7a5b1e9ac.tar.gz
libssh-b7af2b29594a19dec5f71eb9412bd2a7a5b1e9ac.tar.xz
libssh-b7af2b29594a19dec5f71eb9412bd2a7a5b1e9ac.zip
Changed callbacks type
Diffstat (limited to 'src/threads')
-rw-r--r--src/threads/pthread.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/threads/pthread.c b/src/threads/pthread.c
index 0fc0b110..84966d01 100644
--- a/src/threads/pthread.c
+++ b/src/threads/pthread.c
@@ -80,7 +80,7 @@ static unsigned long ssh_pthread_thread_id (void){
struct ssh_threads_callbacks_struct ssh_threads_pthread =
{
- .type=ssh_threads_type_pthread,
+ .type="threads_pthread",
.mutex_init=ssh_pthread_mutex_init,
.mutex_destroy=ssh_pthread_mutex_destroy,
.mutex_lock=ssh_pthread_mutex_lock,
@@ -88,16 +88,4 @@ struct ssh_threads_callbacks_struct ssh_threads_pthread =
.thread_id=ssh_pthread_thread_id
};
-#ifdef THREAD_NATIVE_PTHREAD
-struct ssh_threads_callbacks_struct ssh_threads_native =
-{
- .type=ssh_threads_type_pthread,
- .mutex_init=ssh_pthread_mutex_init,
- .mutex_destroy=ssh_pthread_mutex_destroy,
- .mutex_lock=ssh_pthread_mutex_lock,
- .mutex_unlock=ssh_pthread_mutex_unlock,
- .thread_id=ssh_pthread_thread_id
-};
-#endif
-
#endif /* HAVE_PTHREAD */