mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-25 01:18:15 +00:00
Merge pull request #3851 from neheb/decvl
fix prototypes and old declarations
This commit is contained in:
commit
0af2345916
@ -596,7 +596,7 @@ typedef int (ADL_API_CALL *ADL_ADAPTER_ACTIVE_GET ) ( int, int* );
|
||||
typedef int (ADL_API_CALL *ADL_ADAPTER_ADAPTERINFO_GET ) ( LPAdapterInfo, int );
|
||||
typedef int (ADL_API_CALL *ADL_ADAPTER_NUMBEROFADAPTERS_GET ) ( int* );
|
||||
typedef int (ADL_API_CALL *ADL_MAIN_CONTROL_CREATE )(ADL_MAIN_MALLOC_CALLBACK, int );
|
||||
typedef int (ADL_API_CALL *ADL_MAIN_CONTROL_DESTROY )();
|
||||
typedef int (ADL_API_CALL *ADL_MAIN_CONTROL_DESTROY )(void);
|
||||
typedef int (ADL_API_CALL *ADL_OVERDRIVE5_CURRENTACTIVITY_GET ) (int iAdapterIndex, ADLPMActivity *lpActivity);
|
||||
typedef int (ADL_API_CALL *ADL_OVERDRIVE5_FANSPEEDINFO_GET ) (int iAdapterIndex, int iThermalControllerIndex, ADLFanSpeedInfo *lpFanSpeedInfo);
|
||||
typedef int (ADL_API_CALL *ADL_OVERDRIVE5_FANSPEED_GET ) (int iAdapterIndex, int iThermalControllerIndex, ADLFanSpeedValue *lpFanSpeedValue);
|
||||
|
@ -1022,7 +1022,7 @@ typedef CUresult (CUDA_API_CALL *CUDA_CUCTXPUSHCURRENT) (CUcontext);
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUCTXSETCACHECONFIG) (CUfunc_cache);
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUCTXSETCURRENT) (CUcontext);
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUCTXSETSHAREDMEMCONFIG) (CUsharedconfig);
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUCTXSYNCHRONIZE) ();
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUCTXSYNCHRONIZE) (void);
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUDEVICEGETATTRIBUTE) (int *, CUdevice_attribute, CUdevice);
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUDEVICEGETCOUNT) (int *);
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUDEVICEGET) (CUdevice *, int);
|
||||
@ -1059,8 +1059,8 @@ typedef CUresult (CUDA_API_CALL *CUDA_CUMODULELOAD) (CUmodule *, con
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUMODULELOADDATA) (CUmodule *, const void *);
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUMODULELOADDATAEX) (CUmodule *, const void *, unsigned int, CUjit_option *, void **);
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUMODULEUNLOAD) (CUmodule);
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUPROFILERSTART) ();
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUPROFILERSTOP) ();
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUPROFILERSTART) (void);
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUPROFILERSTOP) (void);
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUSTREAMCREATE) (CUstream *, unsigned int);
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUSTREAMDESTROY) (CUstream);
|
||||
typedef CUresult (CUDA_API_CALL *CUDA_CUSTREAMSYNCHRONIZE) (CUstream);
|
||||
|
@ -377,7 +377,7 @@ typedef hipError_t (HIP_API_CALL *HIP_HIPCTXDESTROY) (hipCtx_t);
|
||||
typedef hipError_t (HIP_API_CALL *HIP_HIPCTXPOPCURRENT) (hipCtx_t *);
|
||||
typedef hipError_t (HIP_API_CALL *HIP_HIPCTXPUSHCURRENT) (hipCtx_t);
|
||||
typedef hipError_t (HIP_API_CALL *HIP_HIPCTXSETCURRENT) (hipCtx_t);
|
||||
typedef hipError_t (HIP_API_CALL *HIP_HIPCTXSYNCHRONIZE) ();
|
||||
typedef hipError_t (HIP_API_CALL *HIP_HIPCTXSYNCHRONIZE) (void);
|
||||
typedef hipError_t (HIP_API_CALL *HIP_HIPDEVICEGETATTRIBUTE) (int *, hipDeviceAttribute_t, hipDevice_t);
|
||||
typedef hipError_t (HIP_API_CALL *HIP_HIPDEVICEGETCOUNT) (int *);
|
||||
typedef hipError_t (HIP_API_CALL *HIP_HIPDEVICEGET) (hipDevice_t *, int);
|
||||
|
@ -48,7 +48,7 @@ typedef hm_sysfs_cpu_lib_t SYSFS_CPU_PTR;
|
||||
|
||||
bool sysfs_cpu_init (void *hashcat_ctx);
|
||||
void sysfs_cpu_close (void *hashcat_ctx);
|
||||
char *hm_SYSFS_CPU_get_syspath_hwmon ();
|
||||
char *hm_SYSFS_CPU_get_syspath_hwmon (void);
|
||||
int hm_SYSFS_CPU_get_temperature_current (void *hashcat_ctx, int *val);
|
||||
|
||||
bool read_proc_stat (void *hashcat_ctx, proc_stat_t *proc_stat);
|
||||
|
@ -69,7 +69,7 @@ int hc_string_bom_size (const u8 *s);
|
||||
void hc_string_trim_trailing (char *s);
|
||||
void hc_string_trim_leading (char *s);
|
||||
|
||||
int hc_get_processor_count ();
|
||||
int hc_get_processor_count (void);
|
||||
|
||||
bool hc_same_files (char *file1, char *file2);
|
||||
|
||||
|
@ -42,7 +42,7 @@ void sysfs_cpu_close (void *hashcat_ctx)
|
||||
}
|
||||
}
|
||||
|
||||
char *hm_SYSFS_CPU_get_syspath_hwmon ()
|
||||
char *hm_SYSFS_CPU_get_syspath_hwmon (void)
|
||||
{
|
||||
char *found[4];
|
||||
|
||||
|
@ -597,7 +597,7 @@ void setup_environment_variables (const folder_config_t *folder_config)
|
||||
#endif
|
||||
}
|
||||
|
||||
void setup_umask ()
|
||||
void setup_umask (void)
|
||||
{
|
||||
umask (077);
|
||||
}
|
||||
@ -681,7 +681,7 @@ void hc_string_trim_trailing (char *s)
|
||||
s[new_len] = 0;
|
||||
}
|
||||
|
||||
int hc_get_processor_count ()
|
||||
int hc_get_processor_count (void)
|
||||
{
|
||||
int cnt = 0;
|
||||
|
||||
|
@ -125,7 +125,7 @@ void goodbye_screen (hashcat_ctx_t *hashcat_ctx, const time_t proc_start, const
|
||||
event_log_info_nn (hashcat_ctx, "Stopped: %s", ctime_r (&proc_stop, stop_buf));
|
||||
}
|
||||
|
||||
int setup_console ()
|
||||
int setup_console (void)
|
||||
{
|
||||
#if defined (_WIN)
|
||||
SetConsoleWindowSize (132);
|
||||
@ -445,7 +445,7 @@ void SetConsoleWindowSize (const int x)
|
||||
static struct termios savemodes;
|
||||
static int havemodes = 0;
|
||||
|
||||
int tty_break ()
|
||||
int tty_break (void)
|
||||
{
|
||||
struct termios modmodes;
|
||||
|
||||
@ -461,7 +461,7 @@ int tty_break ()
|
||||
return tcsetattr (fileno (stdin), TCSANOW, &modmodes);
|
||||
}
|
||||
|
||||
int tty_getchar ()
|
||||
int tty_getchar (void)
|
||||
{
|
||||
fd_set rfds;
|
||||
|
||||
@ -482,7 +482,7 @@ int tty_getchar ()
|
||||
return getchar ();
|
||||
}
|
||||
|
||||
int tty_fix ()
|
||||
int tty_fix (void)
|
||||
{
|
||||
if (!havemodes) return 0;
|
||||
|
||||
@ -494,7 +494,7 @@ int tty_fix ()
|
||||
static struct termios savemodes;
|
||||
static int havemodes = 0;
|
||||
|
||||
int tty_break ()
|
||||
int tty_break (void)
|
||||
{
|
||||
struct termios modmodes;
|
||||
|
||||
@ -510,7 +510,7 @@ int tty_break ()
|
||||
return ioctl (fileno (stdin), TIOCSETAW, &modmodes);
|
||||
}
|
||||
|
||||
int tty_getchar ()
|
||||
int tty_getchar (void)
|
||||
{
|
||||
fd_set rfds;
|
||||
|
||||
@ -542,7 +542,7 @@ int tty_fix ()
|
||||
#if defined (_WIN)
|
||||
static DWORD saveMode = 0;
|
||||
|
||||
int tty_break ()
|
||||
int tty_break (void)
|
||||
{
|
||||
HANDLE stdinHandle = GetStdHandle (STD_INPUT_HANDLE);
|
||||
|
||||
@ -552,7 +552,7 @@ int tty_break ()
|
||||
return 0;
|
||||
}
|
||||
|
||||
int tty_getchar ()
|
||||
int tty_getchar (void)
|
||||
{
|
||||
HANDLE stdinHandle = GetStdHandle (STD_INPUT_HANDLE);
|
||||
|
||||
@ -592,7 +592,7 @@ int tty_getchar ()
|
||||
return 0;
|
||||
}
|
||||
|
||||
int tty_fix ()
|
||||
int tty_fix (void)
|
||||
{
|
||||
HANDLE stdinHandle = GetStdHandle (STD_INPUT_HANDLE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user