1
0
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:
jsteube 2016-10-10 09:18:10 +02:00
parent 0f96c57ead
commit 07f5b2195b
2 changed files with 2 additions and 7 deletions

View File

@ -29,7 +29,7 @@ static int CPU_ISSET (int num, cpu_set_t *cs)
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;

View File

@ -163,12 +163,7 @@ char **scan_directory (const char *path)
struct dirent *de = NULL;
if (readdir_r (d, &e, &de) != 0)
{
event_log_error (hashcat_ctx, "ERROR: readdir_r() failed");
break;
}
if (readdir_r (d, &e, &de) != 0) break;
if (de == NULL) break;