diff --git a/oldbloom/bloom.cpp b/oldbloom/bloom.cpp index 623989c..0b870e6 100644 --- a/oldbloom/bloom.cpp +++ b/oldbloom/bloom.cpp @@ -77,13 +77,10 @@ static int oldbloom_check_add(struct oldbloom * bloom, const void * buffer, int r = oldtest_bit_set_bit(bloom->bf, x, add); ReleaseMutex(bloom->mutex); #else - pthread_mutex_lock(&bloom->mutex); + pthread_mutex_lock((pthread_mutex_t*)&bloom->mutex); r = oldtest_bit_set_bit(bloom->bf, x, add); - pthread_mutex_unlock(&bloom->mutex); + pthread_mutex_unlock((pthread_mutex_t*)&bloom->mutex); #endif - - - pthread_mutex_unlock(&bloom->mutex); if (r) { hits++; } else if (!add) {