Changeset 11881
- Timestamp:
- Feb 12, 2011, 5:27:47 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/daemon/remote.c
r11865 r11881 2278 2278 default: 2279 2279 { 2280 fprintf( stderr, "got opt [%d]\n", (int)c );2280 fprintf( stderr, "got opt [%d]\n", c ); 2281 2281 showUsage( ); 2282 2282 break; -
trunk/libtransmission/fdlimit.c
r11863 r11881 794 794 gFd->public_socket_limit = socket_limit; 795 795 796 tr_dbg( "socket limit is %d", (int)gFd->socket_limit );796 tr_dbg( "socket limit is %d", gFd->socket_limit ); 797 797 } 798 798 -
trunk/libtransmission/handshake.c
r11709 r11881 266 266 267 267 dbgmsg( handshake, "payload: need %d, got %zu", 268 (int)HANDSHAKE_SIZE, evbuffer_get_length( inbuf ) );268 HANDSHAKE_SIZE, evbuffer_get_length( inbuf ) ); 269 269 270 270 if( evbuffer_get_length( inbuf ) < HANDSHAKE_SIZE ) … … 609 609 610 610 dbgmsg( handshake, "payload: need %d, got %zu", 611 (int)INCOMING_HANDSHAKE_LEN, evbuffer_get_length( inbuf ) );611 INCOMING_HANDSHAKE_LEN, evbuffer_get_length( inbuf ) ); 612 612 613 613 if( evbuffer_get_length( inbuf ) < INCOMING_HANDSHAKE_LEN ) … … 758 758 759 759 dbgmsg( handshake, "in readYa... need %d, have %zu", 760 (int)KEY_LEN, evbuffer_get_length( inbuf ) );760 KEY_LEN, evbuffer_get_length( inbuf ) ); 761 761 if( evbuffer_get_length( inbuf ) < KEY_LEN ) 762 762 return READ_LATER; -
trunk/libtransmission/json.c
r11709 r11881 92 92 case JSON_T_FLOAT: 93 93 data->hasContent = TRUE; 94 tr_bencInitReal( getNode( data ), (double)value->vu.float_value );94 tr_bencInitReal( getNode( data ), value->vu.float_value ); 95 95 break; 96 96 -
trunk/libtransmission/peer-mgr.c
r11783 r11881 804 804 missing = tr_cpMissingBlocksInPiece( &tor->completion, a->index ); 805 805 pending = a->requestCount; 806 ia = missing > pending ? missing - pending : ( int)(tor->blockCountInPiece + pending);806 ia = missing > pending ? missing - pending : (tor->blockCountInPiece + pending); 807 807 missing = tr_cpMissingBlocksInPiece( &tor->completion, b->index ); 808 808 pending = b->requestCount; 809 ib = missing > pending ? missing - pending : ( int)(tor->blockCountInPiece + pending);809 ib = missing > pending ? missing - pending : (tor->blockCountInPiece + pending); 810 810 if( ia < ib ) return -1; 811 811 if( ia > ib ) return 1; -
trunk/libtransmission/utils.c
r11798 r11881 202 202 tr_localtime_r( &seconds, &now_tm ); 203 203 strftime( tmp, sizeof( tmp ), "%H:%M:%S", &now_tm ); 204 milliseconds = (int)( tv.tv_usec / 1000 );204 milliseconds = tv.tv_usec / 1000; 205 205 tr_snprintf( buf, buflen, "%s.%03d", tmp, milliseconds ); 206 206 -
trunk/libtransmission/utils.h
r11775 r11881 324 324 325 325 #define tr_new( struct_type, n_structs ) \ 326 ( (struct_type *) tr_malloc ( ( (size_t) sizeof ( struct_type )) * ( ( size_t) ( n_structs ) ) ) )326 ( (struct_type *) tr_malloc ( sizeof ( struct_type ) * ( ( size_t) ( n_structs ) ) ) ) 327 327 328 328 #define tr_new0( struct_type, n_structs ) \ 329 ( (struct_type *) tr_malloc0 ( ( (size_t) sizeof ( struct_type )) * ( ( size_t) ( n_structs ) ) ) )329 ( (struct_type *) tr_malloc0 ( sizeof ( struct_type ) * ( ( size_t) ( n_structs ) ) ) ) 330 330 331 331 #define tr_renew( struct_type, mem, n_structs ) \ 332 ( (struct_type *) realloc ( ( mem ), ( (size_t) sizeof ( struct_type )) * ( ( size_t) ( n_structs ) ) ) )332 ( (struct_type *) realloc ( ( mem ), sizeof ( struct_type ) * ( ( size_t) ( n_structs ) ) ) ) 333 333 334 334 void* tr_valloc( size_t bufLen );
Note: See TracChangeset
for help on using the changeset viewer.