Ignore:
Timestamp:
Jul 26, 2011, 1:36:30 AM (10 years ago)
Author:
livings124
Message:

#4387 Update miniupnpc to 1.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/upnp.c

    r12204 r12593  
    9898        struct UPNPDev * devlist;
    9999        errno = 0;
    100         devlist = upnpDiscover( 2000, NULL, NULL, 0 );
     100        devlist = upnpDiscover( 2000, NULL, NULL, 0, 0, &errno );
    101101        if( devlist == NULL )
    102102        {
     
    145145        tr_snprintf( portStr, sizeof( portStr ), "%d", handle->port );
    146146        if( UPNP_GetSpecificPortMappingEntry( handle->urls.controlURL, handle->data.first.servicetype,
    147             portStr, "TCP", intClient, intPort ) != UPNPCOMMAND_SUCCESS  ||
     147            portStr, "TCP", intClient, intPort, NULL, NULL, NULL ) != UPNPCOMMAND_SUCCESS  ||
    148148            UPNP_GetSpecificPortMappingEntry( handle->urls.controlURL, handle->data.first.servicetype,
    149             portStr, "UDP", intClient, intPort ) != UPNPCOMMAND_SUCCESS )
     149            portStr, "UDP", intClient, intPort, NULL, NULL, NULL ) != UPNPCOMMAND_SUCCESS )
    150150        {
    151151            tr_ninf( getKey( ), _( "Port %d isn't forwarded" ), handle->port );
     
    199199                                       handle->data.first.servicetype,
    200200                                       portStr, portStr, handle->lanaddr,
    201                                        desc, "TCP", NULL );
     201                                       desc, "TCP", NULL, NULL );
    202202            if( err_tcp )
    203203                tr_ndbg( getKey( ), "TCP Port forwarding failed with error %d (errno %d - %s)",
     
    208208                                       handle->data.first.servicetype,
    209209                                       portStr, portStr, handle->lanaddr,
    210                                        desc, "UDP", NULL );
     210                                       desc, "UDP", NULL, NULL );
    211211            if( err_udp )
    212212                tr_ndbg( getKey( ), "UDP Port forwarding failed with error %d (errno %d - %s)",
Note: See TracChangeset for help on using the changeset viewer.