mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Removed now useless atributes from structs.
This commit is contained in:
parent
d67624bf99
commit
ebdfa892b3
|
@ -135,7 +135,7 @@ typedef struct {
|
||||||
NAT nat;
|
NAT nat;
|
||||||
} DHT_Friend;
|
} DHT_Friend;
|
||||||
|
|
||||||
typedef struct __attribute__ ((__packed__))
|
typedef struct
|
||||||
{
|
{
|
||||||
uint8_t client_id[CLIENT_ID_SIZE];
|
uint8_t client_id[CLIENT_ID_SIZE];
|
||||||
IP_Port ip_port;
|
IP_Port ip_port;
|
||||||
|
|
|
@ -134,7 +134,7 @@ typedef int sock_t;
|
||||||
#define TCP_INET6 (AF_INET6 + 3)
|
#define TCP_INET6 (AF_INET6 + 3)
|
||||||
#define TCP_FAMILY (AF_INET6 + 4)
|
#define TCP_FAMILY (AF_INET6 + 4)
|
||||||
|
|
||||||
typedef union __attribute__ ((__packed__))
|
typedef union
|
||||||
{
|
{
|
||||||
uint8_t uint8[4];
|
uint8_t uint8[4];
|
||||||
uint16_t uint16[2];
|
uint16_t uint16[2];
|
||||||
|
@ -143,7 +143,7 @@ typedef union __attribute__ ((__packed__))
|
||||||
}
|
}
|
||||||
IP4;
|
IP4;
|
||||||
|
|
||||||
typedef union __attribute__ ((__packed__))
|
typedef union
|
||||||
{
|
{
|
||||||
uint8_t uint8[16];
|
uint8_t uint8[16];
|
||||||
uint16_t uint16[8];
|
uint16_t uint16[8];
|
||||||
|
@ -153,7 +153,7 @@ typedef union __attribute__ ((__packed__))
|
||||||
}
|
}
|
||||||
IP6;
|
IP6;
|
||||||
|
|
||||||
typedef struct __attribute__ ((__packed__))
|
typedef struct
|
||||||
{
|
{
|
||||||
uint8_t family;
|
uint8_t family;
|
||||||
union {
|
union {
|
||||||
|
@ -163,7 +163,7 @@ typedef struct __attribute__ ((__packed__))
|
||||||
}
|
}
|
||||||
IP;
|
IP;
|
||||||
|
|
||||||
typedef struct __attribute__ ((__packed__)) __attribute__((gcc_struct))
|
typedef struct
|
||||||
{
|
{
|
||||||
IP ip;
|
IP ip;
|
||||||
uint16_t port;
|
uint16_t port;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user