1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-24 07:28:10 +00:00

Fix folder.c warnings when compiling on windows

This commit is contained in:
jsteube 2016-11-07 15:05:12 +01:00
parent eeb3c01468
commit 69804dc5f7
2 changed files with 8 additions and 0 deletions

View File

@ -91,6 +91,7 @@ static void get_install_dir (char *install_dir, const char *exec_path)
} }
} }
#if defined (_POSIX)
static void get_profile_dir (char *profile_dir, const char *home_dir) static void get_profile_dir (char *profile_dir, const char *home_dir)
{ {
snprintf (profile_dir, HCBUFSIZ_TINY - 1, "%s/%s", home_dir, DOT_HASHCAT); snprintf (profile_dir, HCBUFSIZ_TINY - 1, "%s/%s", home_dir, DOT_HASHCAT);
@ -100,6 +101,7 @@ static void get_session_dir (char *session_dir, const char *profile_dir)
{ {
snprintf (session_dir, HCBUFSIZ_TINY - 1, "%s/%s", profile_dir, SESSIONS_FOLDER); snprintf (session_dir, HCBUFSIZ_TINY - 1, "%s/%s", profile_dir, SESSIONS_FOLDER);
} }
#endif
int count_dictionaries (char **dictionary_files) int count_dictionaries (char **dictionary_files)
{ {

View File

@ -1139,18 +1139,24 @@ static int hm_NvAPI_GPU_SetCoolerLevels (hashcat_ctx_t *hashcat_ctx, NvPhysicalG
return 0; return 0;
} }
/*
#if defined (__MINGW64__) #if defined (__MINGW64__)
void __security_check_cookie (uintptr_t _StackCookie);
void __security_check_cookie (uintptr_t _StackCookie) void __security_check_cookie (uintptr_t _StackCookie)
{ {
(void) _StackCookie; (void) _StackCookie;
} }
void __GSHandlerCheck ();
void __GSHandlerCheck () void __GSHandlerCheck ()
{ {
} }
#endif #endif
*/
// xnvctrl functions // xnvctrl functions