Ignore:
Timestamp:
Dec 1, 2008, 8:51:01 PM (13 years ago)
Author:
charles
Message:

(libT) janitorial: use the tr_port type whenever we have a `port' as a function argument or as a field in a struct.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.c

    r7223 r7224  
    140140tr_netOpenTCP( tr_session            * session,
    141141               const struct in_addr  * addr,
    142                tr_port_t               port )
     142               tr_port                 port )
    143143{
    144144    int                s;
     
    163163      && ( sockerrno != EINPROGRESS ) )
    164164    {
    165         tr_err( _(
    166                    "Couldn't connect socket %d to %s, port %d (errno %d - %s)" ),
    167                s, inet_ntoa( *addr ), port,
    168                sockerrno, tr_strerror( sockerrno ) );
     165        tr_err( _( "Couldn't connect socket %d to %s, port %d (errno %d - %s)" ),
     166               s, inet_ntoa( *addr ), (int)port, sockerrno, tr_strerror( sockerrno ) );
    169167        tr_netClose( s );
    170168        s = -1;
     
    218216              int               b,
    219217              struct in_addr  * addr,
    220               tr_port_t       * port )
     218              tr_port         * port )
    221219{
    222220    int fd = makeSocketNonBlocking( tr_fdSocketAccept( b, addr, port ) );
Note: See TracChangeset for help on using the changeset viewer.