Ignore:
Timestamp:
Mar 24, 2011, 10:57:39 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) copyediting: remove a bunch of seemingly-unneeded network headers in net.[ch].

I'm less certain that these are unneeded because networking APIs seem to have more variation between platforms, but it's better to remove the cruft and then add back whatever headers $PLATFORM users complain about, than to not remove the cruft at all...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/natpmp.c

    r12204 r12225  
    1515#include <inttypes.h>
    1616
     17#include <event2/util.h> /* evutil_inet_ntop() */
     18
    1719#define ENABLE_STRNATPMPERR
    1820#include <libnatpmp/natpmp.h>
     
    2022#include "transmission.h"
    2123#include "natpmp.h"
    22 #include "net.h" /* inet_ntoa() */
     24#include "net.h" /* tr_netCloseSocket */
    2325#include "port-forwarding.h"
    2426#include "utils.h"
     
    135137        if( val >= 0 )
    136138        {
    137             tr_ninf( getKey( ), _( "Found public address \"%s\"" ),
    138                      inet_ntoa( response.pnu.publicaddress.addr ) );
     139            char str[128];
     140            evutil_inet_ntop( AF_INET, &response.pnu.publicaddress.addr, str, sizeof( str ) );
     141            tr_ninf( getKey( ), _( "Found public address \"%s\"" ), str );
    139142            nat->state = TR_NATPMP_IDLE;
    140143        }
Note: See TracChangeset for help on using the changeset viewer.