Changeset 9131
- Timestamp:
- Sep 17, 2009, 3:24:35 AM (14 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/handshake.c
r8889 r9131 863 863 const tr_bool peerIsSeed = tr_peerMgrPeerIsSeed( tor, tr_peerIoGetAddress( handshake->io, NULL ) ); 864 864 dbgmsg( handshake, "got INCOMING connection's encrypted handshake for torrent [%s]", 865 t or->info.name);865 tr_torrentName( tor ) ); 866 866 tr_peerIoSetTorrentHash( handshake->io, tor->info.hash ); 867 867 -
trunk/libtransmission/peer-mgr.c
r9089 r9131 172 172 do { \ 173 173 if( tr_deepLoggingIsActive( ) ) \ 174 tr_deepLog( __FILE__, __LINE__, t ->tor->info.name, __VA_ARGS__ ); \174 tr_deepLog( __FILE__, __LINE__, tr_torrentName( t->tor ), __VA_ARGS__ ); \ 175 175 } while( 0 ) 176 176 … … 2364 2364 "%d atoms, " 2365 2365 "max per pulse is %d", 2366 t ->tor->info.name,2366 tr_torrentName( t->tor ), 2367 2367 mustCloseCount, 2368 2368 canCloseCount, -
trunk/libtransmission/peer-msgs.c
r9085 r9131 220 220 evbuffer_add_printf( buf, "[%s] %s - %s [%s]: ", 221 221 tr_getLogTimeStr( timestr, sizeof( timestr ) ), 222 msgs->torrent->info.name,222 tr_torrentName( msgs->torrent ), 223 223 tr_peerIoGetAddrStr( msgs->peer->io ), 224 224 msgs->peer->client ); -
trunk/libtransmission/resume.c
r9085 r9131 70 70 tr_getResumeDir( tor->session ), 71 71 TR_PATH_DELIMITER, 72 t or->info.name,72 tr_torrentName( tor ), 73 73 tor->info.hashString ); 74 74 } … … 502 502 return; 503 503 504 tr_tordbg( tor, "Saving .resume file for \"%s\"", t or->info.name);504 tr_tordbg( tor, "Saving .resume file for \"%s\"", tr_torrentName( tor ) ); 505 505 506 506 tr_bencInitDict( &top, 32 ); /* arbitrary "big enough" number */ -
trunk/libtransmission/torrent.h
r8915 r9131 327 327 }; 328 328 329 static inlinetr_bool tr_isTorrent( const tr_torrent * tor )329 static TR_INLINE tr_bool tr_isTorrent( const tr_torrent * tor ) 330 330 { 331 331 return ( tor != NULL ) … … 336 336 /* set a flag indicating that the torrent's .resume file 337 337 * needs to be saved when the torrent is closed */ 338 static inlinevoid tr_torrentSetDirty( tr_torrent * tor )338 static TR_INLINE void tr_torrentSetDirty( tr_torrent * tor ) 339 339 { 340 340 assert( tr_isTorrent( tor ) ); … … 343 343 } 344 344 345 static TR_INLINE const char * tr_torrentName( const tr_torrent * tor ) 346 { 347 assert( tr_isTorrent( tor ) ); 348 349 return tor->info.name; 350 } 351 345 352 #endif
Note: See TracChangeset
for help on using the changeset viewer.