Ignore:
Timestamp:
Jul 14, 2007, 4:29:21 PM (15 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/natpmp.c

    r2311 r2343  
    2222 * DEALINGS IN THE SOFTWARE.
    2323 *****************************************************************************/
     24
     25#include <sys/types.h>
     26#include <sys/socket.h>
     27#include <netinet/in.h>
     28#include <arpa/inet.h>
    2429
    2530#include "transmission.h"
     
    511516    }
    512517
    513     ret->fd = tr_netOpenUDP( addr, htons( PMP_PORT ), 1 );
     518    ret->fd = tr_netOpenUDP( &addr, htons( PMP_PORT ), 1 );
    514519    if( 0 > ret->fd )
    515520    {
     
    667672
    668673    addr.s_addr = inet_addr( PMP_MCAST_ADDR );
    669     fd = tr_netMcastOpen( PMP_PORT, addr );
     674    fd = tr_netMcastOpen( PMP_PORT, &addr );
    670675    if( 0 > fd )
    671676    {
Note: See TracChangeset for help on using the changeset viewer.