1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-23 00:28:11 +00:00

Make hc_sleep() a function

This commit is contained in:
jsteube 2016-09-08 10:48:38 +02:00
parent e3d0cd0bdd
commit d9073296e4
2 changed files with 10 additions and 5 deletions

View File

@ -37,11 +37,7 @@
#if defined (_WIN)
#define hc_sleep(x) Sleep ((x) * 1000);
#elif defined (_POSIX)
#define hc_sleep(x) sleep ((x));
#endif
#define ETC_MAX (60 * 60 * 24 * 365 * 10)
@ -67,6 +63,8 @@ u64 mydivc64 (const u64 dividend, const u64 divisor);
void naive_replace (char *s, const u8 key_char, const u8 replace_char);
void naive_escape (char *s, size_t s_max, const u8 key_char, const u8 escape_char);
void hc_sleep (const int sec);
/**

View File

@ -103,7 +103,14 @@ void naive_escape (char *s, size_t s_max, const u8 key_char, const u8 escape_cha
strncpy (s, s_escaped, s_max - 1);
}
void hc_sleep (const int sec)
{
#if defined (_WIN)
#define sleep(x) Sleep ((x) * 1000)
#endif
sleep (sec);
}
// need to sort out from here