1
0
Fork 0
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:
Erick Turnquist 2008-12-17 01:39:24 +00:00
parent 2e60cd3a33
commit be4dc0d674

View file

@ -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 */