Changeset 6768


Ignore:
Timestamp:
Sep 16, 2008, 5:50:16 PM (13 years ago)
Author:
charles
Message:

(1.3x) minor odds-and-ends: backport dead code removal, compiler warning fix from r6627, r6628, r6618, r6620

Location:
branches/1.3x
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3x/gtk/notify.c

    r5843 r6768  
    1111 */
    1212
     13#include <string.h>
    1314#ifdef HAVE_GIO
    1415#include <gio/gio.h>
  • branches/1.3x/libtransmission/peer-mgr.c

    r6757 r6768  
    414414    uint8_t w[SHA_DIGEST_LENGTH + 4];
    415415    uint8_t x[SHA_DIGEST_LENGTH];
    416     tr_bitfield_t * a;
     416    tr_bitfield * a;
    417417    uint32_t a_size;
    418418
     
    532532{
    533533    tr_priority_t priority;
    534     int missingBlockCount;
    535534    uint16_t random;
    536535    uint32_t piece;
     
    605604            setme->peerCount = 0;
    606605            setme->random = tr_rand( UINT16_MAX );
    607             setme->missingBlockCount = tr_cpMissingBlocksInPiece( tor->completion, piece );
    608606
    609607            for( k=0; k<peerCount; ++k ) {
  • branches/1.3x/libtransmission/utils.c

    r6767 r6768  
    372372
    373373int
    374 tr_compareTime( time_t a, time_t b )
    375 {
    376     if( a < b ) return -1;
    377     if( a > b ) return 1;
    378     return 0;
    379 }
    380 
    381 int
    382374tr_strcmp( const void * a, const void * b )
    383375{
  • branches/1.3x/libtransmission/utils.h

    r6400 r6768  
    223223int tr_compareUint64( uint64_t a, uint64_t b );
    224224int tr_compareDouble( double a, double b );
    225 int tr_compareTime( time_t a, time_t b );
    226225
    227226int tr_strcmp( const void * a, const void * b );
     
    252251
    253252typedef struct tr_bitfield tr_bitfield;
    254 typedef struct tr_bitfield tr_bitfield_t;
    255253
    256254tr_bitfield* tr_bitfieldNew( size_t bitcount ) TR_GNUC_MALLOC;
     
    270268
    271269tr_bitfield* tr_bitfieldOr( tr_bitfield*, const tr_bitfield* );
    272 
    273 #if 0
    274 /** @brief finds the first true bit in the bitfield, starting at `startPos'
    275     @param setmePos the position of the true bit, if found, is set here.
    276     @return nonzero if a true bit was found */
    277 int tr_bitfieldFindTrue( const tr_bitfield  * bitfield,
    278                          size_t               startPos,
    279                          size_t             * setmePos );
    280 #endif
    281 
    282270
    283271/** A stripped-down version of bitfieldHas to be used
Note: See TracChangeset for help on using the changeset viewer.