diff --git a/libbitdht/src/util/bdthreads.cc b/libbitdht/src/util/bdthreads.cc index b4792429b..b7990f1d3 100644 --- a/libbitdht/src/util/bdthreads.cc +++ b/libbitdht/src/util/bdthreads.cc @@ -75,8 +75,7 @@ bdThread::bdThread() void bdThread::join() /* waits for the the mTid thread to stop */ { - void *ptr; - pthread_join(mTid, &ptr); + pthread_join(mTid, NULL); } void bdThread::stop()