Changeset 6927


Ignore:
Timestamp:
10/19/08 19:54:53 (8 years ago)
Author:
charles
Message:

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

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/trevent.c

    r6912 r6927  
    133133struct tr_timer
    134134{
    135     struct event              event;
    136     struct timeval            tv;
     135    unsigned int              inCallback : 1;
    137136    timer_func *              func;
    138137    void *                    user_data;
    139138    struct tr_event_handle *  eh;
    140     uint8_t                   inCallback;
     139    struct timeval            tv;
     140    struct event              event;
    141141};
    142142
  • trunk/libtransmission/utils.c

    r6924 r6927  
    408408{
    409409    const uint64_t microseconds = milliseconds * 1000;
     410    assert( setme != NULL );
    410411    setme->tv_sec  = microseconds / 1000000;
    411412    setme->tv_usec = microseconds % 1000000;
Note: See TracChangeset for help on using the changeset viewer.