1
0
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:
Ansa89 2014-06-23 10:58:24 +02:00
parent 78af10fa1f
commit cb93c6ec65

View File

@ -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;
} }