Changeset 10590 for branches/1.9x/libtransmission/tr-dht.c
- Timestamp:
- May 1, 2010, 1:00:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.9x/libtransmission/tr-dht.c
r10201 r10590 102 102 103 103 static void 104 bootstrap_from_name( const char *name, short int port, int af )104 bootstrap_from_name( const char *name, tr_port port, int af ) 105 105 { 106 106 struct addrinfo hints, *info, *infop; … … 112 112 hints.ai_family = af; 113 113 /* 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); 115 115 116 116 rc = getaddrinfo(name, pp, &hints, &info);
Note: See TracChangeset
for help on using the changeset viewer.