Changeset 3125


Ignore:
Timestamp:
Sep 21, 2007, 3:31:46 PM (15 years ago)
Author:
charles
Message:

give waldorf a different assertion to crash on.

File:
1 edited

Legend:

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

    r3123 r3125  
    7979
    8080static int
    81 handshakeCompare( const void * va, const void * vb )
    82 {
    83     const tr_handshake * a = va;
    84     const tr_handshake * b = vb;
    85     return memcmp( tr_handshakeGetAddr( a, NULL ),
    86                    tr_handshakeGetAddr( b, NULL ),
    87                    sizeof( struct in_addr ) );
     81handshakeCompare( const void * a, const void * b )
     82{
     83    return handshakeCompareToAddr( a, tr_handshakeGetAddr( b, NULL ) );
    8884}
    8985
     
    586582                                    handshake,
    587583                                    handshakeCompare );
    588     assert( handshake == ours );
     584    assert( ours != NULL );
     585    assert( ours == handshake );
    589586
    590587    in_addr = tr_peerIoGetAddress( io, &port );
Note: See TracChangeset for help on using the changeset viewer.