Changeset 7455 for branches/1.4x/libtransmission/net.c
- Timestamp:
- Dec 22, 2008, 12:51:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.4x/libtransmission/net.c
r7176 r7455 64 64 } 65 65 66 tr_bool 67 tr_isAddress( const tr_address * a ) 68 { 69 return a != NULL; /* this is implemented better in 1.50 */ 70 } 71 72 66 73 /*********************************************************************** 67 74 * DNS resolution … … 243 250 } 244 251 252 int 253 tr_compareAddresses( const struct in_addr * a, const struct in_addr * b ) 254 { 255 if( a->s_addr != b->s_addr ) 256 return a->s_addr < b->s_addr ? -1 : 1; 257 258 return 0; 259 }
Note: See TracChangeset
for help on using the changeset viewer.