mirror of
https://github.com/transmission/transmission
synced 2025-02-03 21:12:05 +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;
|
struct tr_session;
|
||||||
|
|
||||||
#define TR_AF_INET 0
|
typedef enum tr_address_type
|
||||||
#define TR_AF_INET6 1
|
{
|
||||||
|
TR_AF_INET,
|
||||||
|
TR_AF_INET6
|
||||||
|
} tr_address_type;
|
||||||
|
|
||||||
typedef struct tr_address {
|
typedef struct tr_address
|
||||||
uint8_t type;
|
{
|
||||||
|
tr_address_type type;
|
||||||
union {
|
union {
|
||||||
/* The order here is important for tr_in{,6}addr_any initialization,
|
/* The order here is important for tr_in{,6}addr_any initialization,
|
||||||
* since we can't use C99 designated initializers */
|
* since we can't use C99 designated initializers */
|
||||||
|
|
Loading…
Reference in a new issue