Ignore:
Timestamp:
Feb 18, 2011, 12:24:11 AM (11 years ago)
Author:
jch
Message:

Update tr-utp.c to be compatible with libevent2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tr-utp.c

    r11905 r11907  
    9797{
    9898    if(utp_timer == NULL) {
    99         utp_timer = tr_new0(struct event, 1);
     99        utp_timer = evtimer_new( ss->event_base, timer_callback, NULL);
    100100        if(utp_timer == NULL)
    101101            return -1;
    102         evtimer_set(utp_timer, timer_callback, NULL);
    103102        tr_timerAdd(utp_timer, 0,
    104                     UTP_INTERVAL_US / 2 + tr_cryptoWeakRandInt(UTP_INTERVAL_US));
     103                    UTP_INTERVAL_US / 2 +
     104                    tr_cryptoWeakRandInt(UTP_INTERVAL_US));
    105105    }
    106106
Note: See TracChangeset for help on using the changeset viewer.