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/tr-lpd.c

    r12093 r12147  
    292292        lpd_mcastAddr.sin_family = AF_INET;
    293293        lpd_mcastAddr.sin_port = htons( lpd_mcastPort );
    294         if( inet_pton( lpd_mcastAddr.sin_family, lpd_mcastGroup,
     294        if( evutil_inet_pton( lpd_mcastAddr.sin_family, lpd_mcastGroup,
    295295                &lpd_mcastAddr.sin_addr ) < 0 )
    296296            goto fail;
Note: See TracChangeset for help on using the changeset viewer.