Ignore:
Timestamp:
Mar 31, 2011, 4:41:52 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) copyediting: peer-io's "EncryptionMode?" type had a name too similar to tr_encryption_mode... rename it to reduce potential confusion

File:
1 edited

Legend:

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

    r12256 r12282  
    957957
    958958void
    959 tr_peerIoSetEncryption( tr_peerIo * io, uint32_t encryptionMode )
    960 {
    961     assert( tr_isPeerIo( io ) );
    962     assert( encryptionMode == PEER_ENCRYPTION_NONE
    963          || encryptionMode == PEER_ENCRYPTION_RC4 );
    964 
    965     io->encryptionMode = encryptionMode;
     959tr_peerIoSetEncryption( tr_peerIo * io, tr_encryption_type encryption_type )
     960{
     961    assert( tr_isPeerIo( io ) );
     962    assert( encryption_type == PEER_ENCRYPTION_NONE
     963         || encryption_type == PEER_ENCRYPTION_RC4 );
     964
     965    io->encryption_type = encryption_type;
    966966}
    967967
     
    996996maybeEncryptBuffer( tr_peerIo * io, struct evbuffer * buf )
    997997{
    998     if( io->encryptionMode == PEER_ENCRYPTION_RC4 )
     998    if( io->encryption_type == PEER_ENCRYPTION_RC4 )
    999999    {
    10001000        size_t i, n;
     
    10671067    assert( evbuffer_get_length( inbuf )  >= byteCount );
    10681068
    1069     switch( io->encryptionMode )
     1069    switch( io->encryption_type )
    10701070    {
    10711071        case PEER_ENCRYPTION_NONE:
Note: See TracChangeset for help on using the changeset viewer.