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:
parent
e3d0cd0bdd
commit
d9073296e4
@ -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);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user