1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

Add HC_API_CALL to a few functions

On 32-bit MinGW, clang was throwing errors about this.

64-bit MinGW and regular MSYS does not throw warnings after the change.
This commit is contained in:
Rosen Penev 2018-09-18 14:37:30 -07:00
parent 1892b842d7
commit 77daf05dd0
12 changed files with 14 additions and 14 deletions

View File

@ -6,6 +6,6 @@
#ifndef _AUTOTUNE_H
#define _AUTOTUNE_H
void *thread_autotune (void *p);
HC_API_CALL void *thread_autotune (void *p);
#endif // _AUTOTUNE_H

View File

@ -6,7 +6,7 @@
#ifndef _DISPATCH_H
#define _DISPATCH_H
void *thread_calc_stdin (void *p);
void *thread_calc (void *p);
HC_API_CALL void *thread_calc_stdin (void *p);
HC_API_CALL void *thread_calc (void *p);
#endif // _DISPATCH_H

View File

@ -8,6 +8,6 @@
int get_runtime_left (const hashcat_ctx_t *hashcat_ctx);
void *thread_monitor (void *p);
HC_API_CALL void *thread_monitor (void *p);
#endif // _MONITOR_H

View File

@ -11,7 +11,7 @@
#define OUTFILES_DIR "outfiles"
void *thread_outfile_remove (void *p);
HC_API_CALL void *thread_outfile_remove (void *p);
int outcheck_ctx_init (hashcat_ctx_t *hashcat_ctx);
void outcheck_ctx_destroy (hashcat_ctx_t *hashcat_ctx);

View File

@ -6,6 +6,6 @@
#ifndef _SELFTEST_H
#define _SELFTEST_H
void *thread_selftest (void *p);
HC_API_CALL void *thread_selftest (void *p);
#endif // _SELFTEST_H

View File

@ -29,7 +29,7 @@ int setup_console (void);
void send_prompt (hashcat_ctx_t *hashcat_ctx);
void clear_prompt (hashcat_ctx_t *hashcat_ctx);
void *thread_keypress (void *p);
HC_API_CALL void *thread_keypress (void *p);
#if defined (_WIN)
void SetConsoleWindowSize (const int x);

View File

@ -272,7 +272,7 @@ static int autotune (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param
return 0;
}
void *thread_autotune (void *p)
HC_API_CALL void *thread_autotune (void *p)
{
thread_param_t *thread_param = (thread_param_t *) p;

View File

@ -474,7 +474,7 @@ static int calc_stdin (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_par
return 0;
}
void *thread_calc_stdin (void *p)
HC_API_CALL void *thread_calc_stdin (void *p)
{
thread_param_t *thread_param = (thread_param_t *) p;
@ -1429,7 +1429,7 @@ static int calc (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param)
return 0;
}
void *thread_calc (void *p)
HC_API_CALL void *thread_calc (void *p)
{
thread_param_t *thread_param = (thread_param_t *) p;

View File

@ -308,7 +308,7 @@ static int monitor (hashcat_ctx_t *hashcat_ctx)
return 0;
}
void *thread_monitor (void *p)
HC_API_CALL void *thread_monitor (void *p)
{
hashcat_ctx_t *hashcat_ctx = (hashcat_ctx_t *) p;

View File

@ -325,7 +325,7 @@ static int outfile_remove (hashcat_ctx_t *hashcat_ctx)
return 0;
}
void *thread_outfile_remove (void *p)
HC_API_CALL void *thread_outfile_remove (void *p)
{
hashcat_ctx_t *hashcat_ctx = (hashcat_ctx_t *) p;

View File

@ -552,7 +552,7 @@ static int selftest (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param
return 0;
}
void *thread_selftest (void *p)
HC_API_CALL void *thread_selftest (void *p)
{
thread_param_t *thread_param = (thread_param_t *) p;

View File

@ -314,7 +314,7 @@ static void keypress (hashcat_ctx_t *hashcat_ctx)
tty_fix ();
}
void *thread_keypress (void *p)
HC_API_CALL void *thread_keypress (void *p)
{
hashcat_ctx_t *hashcat_ctx = (hashcat_ctx_t *) p;