mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-02 10:51:16 +00:00
Hopefully fixes some OSX compiler errors
This commit is contained in:
parent
0f96c57ead
commit
07f5b2195b
@ -29,7 +29,7 @@ static int CPU_ISSET (int num, cpu_set_t *cs)
|
|||||||
return (cs->count & (1 << num));
|
return (cs->count & (1 << num));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int pthread_setaffinity_np (hashcat_ctx_t *hashcat_ctx, pthread_t thread, size_t cpu_size, cpu_set_t *cpu_set)
|
static int pthread_setaffinity_np (pthread_t thread, size_t cpu_size, cpu_set_t *cpu_set)
|
||||||
{
|
{
|
||||||
int core;
|
int core;
|
||||||
|
|
||||||
|
@ -163,12 +163,7 @@ char **scan_directory (const char *path)
|
|||||||
|
|
||||||
struct dirent *de = NULL;
|
struct dirent *de = NULL;
|
||||||
|
|
||||||
if (readdir_r (d, &e, &de) != 0)
|
if (readdir_r (d, &e, &de) != 0) break;
|
||||||
{
|
|
||||||
event_log_error (hashcat_ctx, "ERROR: readdir_r() failed");
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (de == NULL) break;
|
if (de == NULL) break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user