Ignore:
Timestamp:
Mar 13, 2011, 8:15:40 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) use libevent2's portability wrappers for inet_ntop() and inet_pton().

We currently implement our own versions of these on mingw because that platform doesn't have them... but why reinvent the wheel; libevent has already done the same thing. Let's use libevent2's implementation.
has already done it for us.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer-http.c

    r12141 r12147  
    107107    if( ipv6 ) {
    108108        char ipv6_readable[INET6_ADDRSTRLEN];
    109         inet_ntop( AF_INET6, ipv6, ipv6_readable, INET6_ADDRSTRLEN );
     109        evutil_inet_ntop( AF_INET6, ipv6, ipv6_readable, INET6_ADDRSTRLEN );
    110110        evbuffer_add_printf( buf, "&ipv6=");
    111111        tr_http_escape( buf, ipv6_readable, -1, TRUE );
Note: See TracChangeset for help on using the changeset viewer.