mirror of
https://github.com/hashcat/hashcat.git
synced 2025-03-26 12:25:42 +00:00
Fix compiler warnings for 32 bit windows by changing datatype for parameter 1 for gmtime_r()
This commit is contained in:
parent
0cce17d268
commit
23b5e7f10e
10
src/main.c
10
src/main.c
@ -785,14 +785,20 @@ static void main_wordlist_cache_generate (MAYBE_UNUSED hashcat_ctx_t *hashcat_ct
|
||||
{
|
||||
char *runtime = (char *) malloc (HCBUFSIZ_TINY);
|
||||
|
||||
#if defined (_WIN)
|
||||
__time64_t runtime_sec = cache_generate->runtime;
|
||||
#else
|
||||
time_t runtime_sec = cache_generate->runtime;
|
||||
#endif
|
||||
|
||||
struct tm *tmp;
|
||||
|
||||
#if defined (_WIN)
|
||||
tmp = _gmtime64 (&cache_generate->runtime);
|
||||
tmp = _gmtime64 (&runtime_sec);
|
||||
#else
|
||||
struct tm tm;
|
||||
|
||||
tmp = gmtime_r (&cache_generate->runtime, &tm);
|
||||
tmp = gmtime_r (&runtime_sec, &tm);
|
||||
#endif
|
||||
|
||||
format_timer_display (tmp, runtime, HCBUFSIZ_TINY);
|
||||
|
Loading…
Reference in New Issue
Block a user