Removed now useless atributes from structs.

This commit is contained in:
irungentoo 2014-09-25 16:49:05 -04:00
parent d67624bf99
commit ebdfa892b3
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98
2 changed files with 5 additions and 5 deletions

View File

@ -135,7 +135,7 @@ typedef struct {
NAT nat;
} DHT_Friend;
typedef struct __attribute__ ((__packed__))
typedef struct
{
uint8_t client_id[CLIENT_ID_SIZE];
IP_Port ip_port;

View File

@ -134,7 +134,7 @@ typedef int sock_t;
#define TCP_INET6 (AF_INET6 + 3)
#define TCP_FAMILY (AF_INET6 + 4)
typedef union __attribute__ ((__packed__))
typedef union
{
uint8_t uint8[4];
uint16_t uint16[2];
@ -143,7 +143,7 @@ typedef union __attribute__ ((__packed__))
}
IP4;
typedef union __attribute__ ((__packed__))
typedef union
{
uint8_t uint8[16];
uint16_t uint16[8];
@ -153,7 +153,7 @@ typedef union __attribute__ ((__packed__))
}
IP6;
typedef struct __attribute__ ((__packed__))
typedef struct
{
uint8_t family;
union {
@ -163,7 +163,7 @@ typedef struct __attribute__ ((__packed__))
}
IP;
typedef struct __attribute__ ((__packed__)) __attribute__((gcc_struct))
typedef struct
{
IP ip;
uint16_t port;