mirror of
https://github.com/albertobsd/keyhunt.git
synced 2025-09-26 12:56:28 +02:00
more testing with mingw
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user