Ignore:
Timestamp:
Dec 20, 2010, 2:07:51 AM (11 years ago)
Author:
charles
Message:

(trunk) #3836 "libevent2 support" -- bump libevent2 requirement to 2.0.10. This will break the Mac build for a minute intil BMW applies his Mac patch

File:
1 edited

Legend:

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

    r11357 r11548  
    4343
    4444/* third party */
    45 #include <event.h>
    46 #include <evutil.h>
     45#include <event2/event.h>
     46#include <event2/util.h>
    4747
    4848/* libT */
     
    7171static int lpd_socket; /**<separate multicast receive socket */
    7272static int lpd_socket2; /**<and multicast send socket */
    73 static struct event lpd_event;
     73static struct event * lpd_event = NULL;
    7474static tr_port lpd_port;
    7575
     
    339339     * any announcement received during the initial interval will be discarded. */
    340340
    341     event_set( &lpd_event, lpd_socket, EV_READ | EV_PERSIST, event_callback, NULL );
    342     event_add( &lpd_event, NULL );
     341    lpd_event = event_new( NULL, lpd_socket, EV_READ | EV_PERSIST, event_callback, NULL );
     342    event_add( lpd_event, NULL );
    343343
    344344    tr_ndbg( "LPD", "Local Peer Discovery initialised" );
     
    368368    tr_ndbg( "LPD", "Uninitialising Local Peer Discovery" );
    369369
    370     event_del( &lpd_event );
     370    event_free( lpd_event );
     371    lpd_event = NULL;
    371372
    372373    /* just shut down, we won't remember any former nodes */
Note: See TracChangeset for help on using the changeset viewer.