Changeset 5168


Ignore:
Timestamp:
Feb 28, 2008, 7:33:11 PM (14 years ago)
Author:
charles
Message:

fix some gcc 4.2 warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r5105 r5168  
    198198
    199199static void
    200 managerLock( struct tr_peerMgr * manager )
     200managerLock( const struct tr_peerMgr * manager )
    201201{
    202202    tr_globalLock( manager->handle );
    203203}
    204204static void
    205 managerUnlock( struct tr_peerMgr * manager )
     205managerUnlock( const struct tr_peerMgr * manager )
    206206{
    207207    tr_globalUnlock( manager->handle );
     
    12151215    tr_pex * walk;
    12161216
    1217     torrentLock( (Torrent*)t );
     1217    managerLock( manager );
    12181218
    12191219    peers = (const tr_peer **) tr_ptrArrayPeek( t->peers, &peerCount );
     
    12371237    *setme_pex = pex;
    12381238
    1239     torrentUnlock( (Torrent*)t );
     1239    managerUnlock( manager );
    12401240
    12411241    return peerCount;
Note: See TracChangeset for help on using the changeset viewer.