1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 08:26:45 +02:00

Fixed another clang issue with bools that broek file sending.

This commit is contained in:
Jman012
2014-03-11 13:11:22 -07:00
parent a63cba645f
commit 9f06331a0b
2 changed files with 4 additions and 4 deletions

View File

@ -156,8 +156,8 @@ char *wc_to_char(wchar_t ch)
return ret;
}
/* Returns true if connection has timed out, false otherwise */
bool timed_out(uint64_t timestamp, uint64_t curtime, uint64_t timeout)
/* Returns 1 if connection has timed out, 0 otherwise */
int timed_out(uint64_t timestamp, uint64_t curtime, uint64_t timeout)
{
return timestamp + timeout <= curtime;
}