mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 19:23:28 +01:00
Cast time to "time_t"
This commit is contained in:
parent
78af10fa1f
commit
cb93c6ec65
@ -55,7 +55,7 @@ struct tm *get_time(void)
|
|||||||
{
|
{
|
||||||
struct tm *timeinfo;
|
struct tm *timeinfo;
|
||||||
uint64_t t = get_unix_time();
|
uint64_t t = get_unix_time();
|
||||||
timeinfo = localtime(&t);
|
timeinfo = localtime((const time_t*)&t);
|
||||||
return timeinfo;
|
return timeinfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user