mirror of
https://github.com/albertobsd/keyhunt.git
synced 2025-09-28 13:56:22 +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);
|
r = oldtest_bit_set_bit(bloom->bf, x, add);
|
||||||
ReleaseMutex(bloom->mutex);
|
ReleaseMutex(bloom->mutex);
|
||||||
#else
|
#else
|
||||||
pthread_mutex_lock(&bloom->mutex);
|
pthread_mutex_lock((pthread_mutex_t*)&bloom->mutex);
|
||||||
r = oldtest_bit_set_bit(bloom->bf, x, add);
|
r = oldtest_bit_set_bit(bloom->bf, x, add);
|
||||||
pthread_mutex_unlock(&bloom->mutex);
|
pthread_mutex_unlock((pthread_mutex_t*)&bloom->mutex);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
pthread_mutex_unlock(&bloom->mutex);
|
|
||||||
if (r) {
|
if (r) {
|
||||||
hits++;
|
hits++;
|
||||||
} else if (!add) {
|
} else if (!add) {
|
||||||
|
Reference in New Issue
Block a user