Changeset 10905
- Timestamp:
- Jun 29, 2010, 1:21:38 AM (12 years ago)
- Location:
- branches/2.0x
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0x/gtk/details.c
r10890 r10905 1162 1162 { 1163 1163 int q[4]; 1164 char up_speed[128];1165 char down_speed[128];1166 1164 char collated_name[128]; 1167 1165 const char * client = peer->client; … … 1170 1168 client = ""; 1171 1169 1172 tr_strlspeed( up_speed, peer->rateToPeer, sizeof( up_speed ) );1173 tr_strlspeed( down_speed, peer->rateToClient, sizeof( down_speed ) );1174 1170 if( sscanf( peer->addr, "%d.%d.%d.%d", q, q+1, q+2, q+3 ) != 4 ) 1175 1171 g_strlcpy( collated_name, peer->addr, sizeof( collated_name ) ); -
branches/2.0x/libtransmission/completion.h
r10387 r10905 61 61 62 62 tr_completion * tr_cpDestruct( tr_completion * ); 63 64 static inline tr_completion* tr_cpNew( tr_torrent * tor )65 {66 return tr_cpConstruct( tr_new0( tr_completion, 1 ), tor );67 }68 69 static inline void tr_cpFree( tr_completion * cp )70 {71 tr_free( tr_cpDestruct( cp ) );72 }73 63 74 64 /** -
branches/2.0x/libtransmission/fdlimit.h
r10676 r10905 39 39 void tr_close_file( int fd ); 40 40 41 int64_t tr_lseek( int fd, int64_t offset, int whence );42 41 ssize_t tr_pread(int fd, void *buf, size_t count, off_t offset); 43 42 ssize_t tr_pwrite(int fd, const void *buf, size_t count, off_t offset); -
branches/2.0x/libtransmission/inout.c
r10552 r10905 55 55 TR_IO_WRITE 56 56 }; 57 58 int64_t59 tr_lseek( int fd, int64_t offset, int whence )60 {61 #if defined( HAVE_LSEEK64 )62 return lseek64( fd, (off64_t)offset, whence );63 #elif defined( WIN32 )64 return _lseeki64( fd, offset, whence );65 #else66 return lseek( fd, (off_t)offset, whence );67 #endif68 }69 57 70 58 /* returns 0 on success, or an errno on failure */ -
branches/2.0x/libtransmission/verify.c
r10695 r10905 330 330 } 331 331 332 tr_bool333 tr_verifyInProgress( const tr_torrent * tor )334 {335 tr_bool found = FALSE;336 tr_lock * lock = getVerifyLock( );337 tr_lockLock( lock );338 339 assert( tr_isTorrent( tor ) );340 341 found = ( tor == currentNode.torrent )342 || ( tr_list_find( verifyList, tor, compareVerifyByTorrent ) != NULL );343 344 tr_lockUnlock( lock );345 return found;346 }347 348 332 void 349 333 tr_verifyRemove( tr_torrent * tor ) -
branches/2.0x/libtransmission/verify.h
r9868 r10905 30 30 void tr_verifyRemove( tr_torrent * tor ); 31 31 32 tr_bool tr_verifyInProgress( const tr_torrent * tor );33 34 32 void tr_verifyClose( tr_session * ); 35 33
Note: See TracChangeset
for help on using the changeset viewer.