1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +00:00

(libT) make a few changes to try & smoke out the crash reported by Biiaru

This commit is contained in:
Charles Kerr 2008-10-19 19:54:53 +00:00
parent 545414c632
commit b1defc7c88
2 changed files with 4 additions and 3 deletions

View file

@ -132,12 +132,12 @@ typedef int timer_func ( void* );
struct tr_timer
{
struct event event;
struct timeval tv;
unsigned int inCallback : 1;
timer_func * func;
void * user_data;
struct tr_event_handle * eh;
uint8_t inCallback;
struct timeval tv;
struct event event;
};
struct tr_run_data

View file

@ -407,6 +407,7 @@ void
tr_timevalMsec( uint64_t milliseconds, struct timeval * setme )
{
const uint64_t microseconds = milliseconds * 1000;
assert( setme != NULL );
setme->tv_sec = microseconds / 1000000;
setme->tv_usec = microseconds % 1000000;
}