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.h

    r7223 r7224  
    3434 #include <winsock2.h>
    3535 typedef int socklen_t;
    36  typedef uint16_t tr_port_t;
    3736#elif defined( __BEOS__ )
    3837 #include <sys/socket.h>
    3938 #include <netinet/in.h>
    40  typedef unsigned short tr_port_t;
    4139 typedef int socklen_t;
    4240#else
     
    4543 #include <netinet/in.h>
    4644 #include <arpa/inet.h>
    47  typedef in_port_t tr_port_t;
    4845#endif
    4946
     
    7774int  tr_netOpenTCP( struct tr_handle     * session,
    7875                    const struct in_addr * addr,
    79                     tr_port_t              port );
     76                    tr_port                port );
    8077
    8178int  tr_netBindTCP( int port );
     
    8481                   int                 bound,
    8582                   struct in_addr    * setme_addr,
    86                    tr_port_t         * setme_port );
     83                   tr_port           * setme_port );
    8784
    8885int  tr_netSetTOS( int s,
Note: See TracChangeset for help on using the changeset viewer.