Changeset 7392


Ignore:
Timestamp:
Dec 14, 2008, 10:48:11 PM (12 years ago)
Author:
charles
Message:

(trunk libT) fix type error reported by JhuJhiti?

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/port-forwarding.c

    r7385 r7392  
    206206tr_sharedInit( tr_session  * session,
    207207               tr_bool       isEnabled,
    208                tr_bool       publicPort )
     208               tr_port       publicPort )
    209209{
    210210    tr_shared * s = tr_new0( tr_shared, 1 );
     
    217217    s->upnp         = tr_upnpInit( );
    218218    s->pulseTimer   = tr_timerNew( session, sharedPulse, s, 1000 );
    219     s->isEnabled    = isEnabled ? 1 : 0;
     219    s->isEnabled    = isEnabled;
    220220    s->upnpStatus   = TR_PORT_UNMAPPED;
    221221    s->natpmpStatus = TR_PORT_UNMAPPED;
  • trunk/libtransmission/port-forwarding.h

    r7385 r7392  
    3434typedef struct tr_shared tr_shared;
    3535
    36 tr_shared* tr_sharedInit( tr_session*, tr_bool isEnabled, tr_bool publicPort );
     36tr_shared* tr_sharedInit( tr_session*, tr_bool isEnabled, tr_port publicPort );
    3737
    3838void       tr_sharedShuttingDown( tr_shared * );
Note: See TracChangeset for help on using the changeset viewer.