Changeset 7641 for trunk/libtransmission/peer-io.c
- Timestamp:
- Jan 8, 2009, 4:43:00 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/peer-io.c
r7622 r7641 173 173 && ( io->refCount > 0 ) 174 174 && ( tr_isBandwidth( &io->bandwidth ) ) 175 && ( tr_isAddress( &io->addr ) ) 176 && ( tr_isBool( io->isEncrypted ) ) 177 && ( tr_isBool( io->isIncoming ) ) 178 && ( tr_isBool( io->peerIdIsSet ) ) 179 && ( tr_isBool( io->extendedProtocolSupported ) ) 180 && ( tr_isBool( io->fastExtensionSupported ) ); 175 && ( tr_isAddress( &io->addr ) ); 181 176 } 182 177 … … 842 837 event_enable( tr_peerIo * io, short event ) 843 838 { 844 assert( tr_isPeerIo( io ) );845 846 839 if( event & EV_READ ) 847 840 event_add( &io->event_read, NULL ); … … 854 847 event_disable( struct tr_peerIo * io, short event ) 855 848 { 856 assert( tr_isPeerIo( io ) );857 858 849 if( event & EV_READ ) 859 850 event_del( &io->event_read ); … … 869 860 tr_bool isEnabled ) 870 861 { 871 short event;862 const short event = dir == TR_UP ? EV_WRITE : EV_READ; 872 863 873 864 assert( tr_isPeerIo( io ) ); 874 865 assert( tr_isDirection( dir ) ); 875 876 event = dir == TR_UP ? EV_WRITE : EV_READ;877 866 878 867 if( isEnabled )
Note: See TracChangeset
for help on using the changeset viewer.