Ignore:
Timestamp:
Oct 14, 2008, 8:44:41 PM (13 years ago)
Author:
charles
Message:

(libT) dead code removal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.c

    r6795 r6906  
    118118
    119119static int
    120 createSocket( int type,
    121               int priority )
    122 {
    123     int fd;
    124 
    125     fd = tr_fdSocketCreate( type, priority );
     120createSocket( int type )
     121{
     122    int fd = tr_fdSocketCreate( type );
    126123
    127124    if( fd >= 0 )
     
    141138int
    142139tr_netOpenTCP( const struct in_addr * addr,
    143                tr_port_t              port,
    144                int                    priority )
     140               tr_port_t              port )
    145141{
    146142    int                s;
     
    148144    const int          type = SOCK_STREAM;
    149145
    150     if( ( s = createSocket( type, priority ) ) < 0 )
     146    if( ( s = createSocket( type ) ) < 0 )
    151147        return -1;
    152148
     
    188184#endif
    189185
    190     if( ( s = createSocket( type, 1 ) ) < 0 )
     186    if( ( s = createSocket( type ) ) < 0 )
    191187        return -1;
    192188
Note: See TracChangeset for help on using the changeset viewer.