Ignore:
Timestamp:
Jan 16, 2011, 3:47:09 PM (11 years ago)
Author:
jch
Message:

Consolidate both versions of tr_isPex into a single function.

There used to be two versions of tr_isPex; one correct in peer-mgr.c,
and one buggy in resume.c. The buggy version caused us to reject all
peers with non-trivial flags when resuming.

File:
1 edited

Legend:

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

    r11599 r11690  
    132132tr_peer;
    133133
     134static inline tr_bool
     135tr_isPex( const tr_pex * pex )
     136{
     137    return pex && tr_isAddress( &pex->addr );
     138}
     139
    134140const tr_address * tr_peerAddress( const tr_peer * );
    135141
Note: See TracChangeset for help on using the changeset viewer.