Changeset 245


Ignore:
Timestamp:
Apr 26, 2006, 10:59:09 AM (16 years ago)
Author:
titer
Message:

Fixes warnings

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/transmissioncli.c

    r210 r245  
    128128                info->trackerAddress, info->trackerPort );
    129129        printf( "announce: %s\n", info->trackerAnnounce );
    130         printf( "size:     %lld (%lld * %d + %lld)\n",
     130        printf( "size:     %"PRIu64" (%"PRIu64" * %d + %"PRIu64")\n",
    131131                info->totalSize, info->totalSize / info->pieceSize,
    132132                info->pieceSize, info->totalSize % info->pieceSize );
     
    134134        for( i = 0; i < info->fileCount; i++ )
    135135        {
    136             printf( " %s (%lld)\n", info->files[i].name,
     136            printf( " %s (%"PRIu64")\n", info->files[i].name,
    137137                    info->files[i].length );
    138138        }
  • trunk/libtransmission/bencode.c

    r241 r245  
    164164    {
    165165        case TYPE_INT:
    166             fprintf( stderr, "int:  %lld\n", val->val.i );
     166            fprintf( stderr, "int:  %"PRIu64"\n", val->val.i );
    167167            break;
    168168
     
    262262    {
    263263        case TYPE_INT:
    264             if( tr_bencSprintf( buf, used, max, "i%llde", val->val.i ) )
     264            if( tr_bencSprintf( buf, used, max, "i%"PRIu64"e", val->val.i ) )
    265265            {
    266266                return 1;
  • trunk/libtransmission/internal.h

    r233 r245  
    4848#else
    4949#  include <arpa/inet.h>
     50#endif
     51
     52#ifdef __GNUC__
     53#  define UNUSED __attribute__((unused))
     54#else
     55#  define UNUSED
    5056#endif
    5157
  • trunk/libtransmission/net.c

    r237 r245  
    172172 * queue once resolution is done.
    173173 **********************************************************************/
    174 static void resolveFunc( void * unused )
     174static void resolveFunc( void * arg UNUSED )
    175175{
    176176    tr_resolve_t * r;
  • trunk/libtransmission/tracker.c

    r241 r245  
    333333            "peer_id=%s&"
    334334            "port=%d&"
    335             "uploaded=%lld&"
    336             "downloaded=%lld&"
    337             "left=%lld&"
     335            "uploaded=%"PRIu64"&"
     336            "downloaded=%"PRIu64"&"
     337            "left=%"PRIu64"&"
    338338            "compact=1&"
    339339            "numwant=50&"
  • trunk/libtransmission/transmission.h

    r210 r245  
    2929
    3030#include <inttypes.h>
     31#ifndef PRIu64
     32# define PRIu64 "lld"
     33#endif
    3134
    3235#define SHA_DIGEST_LENGTH 20
Note: See TracChangeset for help on using the changeset viewer.