Changeset 10428


Ignore:
Timestamp:
Mar 31, 2010, 6:52:07 PM (11 years ago)
Author:
charles
Message:

(trunk libT) #3104 "tr-dht.c: signed port number" -- fixed in trunk for 2.00

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tr-dht.c

    r10201 r10428  
    102102
    103103static void
    104 bootstrap_from_name( const char *name, short int port, int af )
     104bootstrap_from_name( const char *name, tr_port port, int af )
    105105{
    106106    struct addrinfo hints, *info, *infop;
     
    112112    hints.ai_family = af;
    113113    /* No, just passing p + 1 to gai won't work. */
    114     tr_snprintf(pp, sizeof(pp), "%d", port);
     114    tr_snprintf(pp, sizeof(pp), "%d", (int)port);
    115115
    116116    rc = getaddrinfo(name, pp, &hints, &info);
Note: See TracChangeset for help on using the changeset viewer.