mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-28 18:56:46 +02:00
Use time_t instead of uint64_t for timestamps
Also call time() directly from get_unix_time() instead of manually updating the time val.
This commit is contained in:
@ -825,7 +825,7 @@ static void draw_infobox(ToxWindow *self)
|
||||
if (x2 < INFOBOX_WIDTH || y2 < INFOBOX_HEIGHT)
|
||||
return;
|
||||
|
||||
uint64_t curtime = get_unix_time();
|
||||
time_t curtime = get_unix_time();
|
||||
|
||||
/* update elapsed time string once per second */
|
||||
if (curtime > infobox->lastupdate)
|
||||
|
Reference in New Issue
Block a user