Ignore:
Timestamp:
Jul 14, 2007, 4:29:21 PM (14 years ago)
Author:
joshe
Message:

Change a couple functions to take an in_addr pointer instead of an in_addr.
Forward declare struct in_addr and include the relevant headers in the .c files where it's used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.h

    r2334 r2343  
    2424
    2525
     26struct in_addr;
     27struct sockaddr_in;
     28
    2629/***********************************************************************
    2730 * DNS resolution
     
    4447#define tr_netOpenUDP( addr, port, priority ) \
    4548    tr_netOpen( (addr), (port), SOCK_DGRAM, (priority) )
    46 int  tr_netOpen    ( struct in_addr addr, in_port_t port, int type,
     49int  tr_netOpen    ( const struct in_addr * addr, in_port_t port, int type,
    4750                     int priority );
    48 int  tr_netMcastOpen( int port, struct in_addr addr );
     51int  tr_netMcastOpen( int port, const struct in_addr * addr );
    4952#define tr_netBindTCP( port ) tr_netBind( (port), SOCK_STREAM )
    5053#define tr_netBindUDP( port ) tr_netBind( (port), SOCK_DGRAM )
Note: See TracChangeset for help on using the changeset viewer.