Changeset 245 for trunk/libtransmission


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

Fixes warnings

Location:
trunk/libtransmission
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • 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.