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/net.c

    r12223 r12225  
    3333 #define _WIN32_WINNT   0x0501
    3434 #include <ws2tcpip.h>
    35 #else
    36  #include <sys/socket.h>
    37  #include <netinet/in.h>
    38  #include <netinet/tcp.h>
    39  #include <arpa/inet.h> /* inet_addr */
    40  #include <netdb.h>
    4135#endif
    4236
    4337#include <event2/util.h>
     38
    4439#include <libutp/utp.h>
    4540
    4641#include "transmission.h"
    47 #include "fdlimit.h"
    48 #include "natpmp.h"
     42#include "fdlimit.h" /* tr_fdSocketClose() */
    4943#include "net.h"
    50 #include "peer-io.h"
    51 #include "platform.h"
    52 #include "session.h"
    53 #include "tr-utp.h"
    54 #include "utils.h"
     44#include "peer-io.h" /* tr_peerIoAddrStr() FIXME this should be moved to net.h */
     45#include "session.h" /* tr_sessionGetPublicAddress() */
     46#include "tr-utp.h" /* tr_utpSendTo() */
     47#include "utils.h" /* tr_time(), tr_dbg() */
    5548
    5649#ifndef IN_MULTICAST
Note: See TracChangeset for help on using the changeset viewer.