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:
parent
545414c632
commit
b1defc7c88
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue