mirror of
https://github.com/transmission/transmission
synced 2025-02-03 13:03:50 +00:00
(trunk libT) use an enum tr_address_type instead of uint8_t for tr_address.type
This commit is contained in:
parent
2e60cd3a33
commit
be4dc0d674
1 changed files with 8 additions and 4 deletions
|
@ -55,11 +55,15 @@
|
|||
|
||||
struct tr_session;
|
||||
|
||||
#define TR_AF_INET 0
|
||||
#define TR_AF_INET6 1
|
||||
typedef enum tr_address_type
|
||||
{
|
||||
TR_AF_INET,
|
||||
TR_AF_INET6
|
||||
} tr_address_type;
|
||||
|
||||
typedef struct tr_address {
|
||||
uint8_t type;
|
||||
typedef struct tr_address
|
||||
{
|
||||
tr_address_type type;
|
||||
union {
|
||||
/* The order here is important for tr_in{,6}addr_any initialization,
|
||||
* since we can't use C99 designated initializers */
|
||||
|
|
Loading…
Reference in a new issue