summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-09-25 16:49:05 -0400
committerirungentoo <irungentoo@gmail.com>2014-09-25 16:49:05 -0400
commitebdfa892b313774085e8d3d9c71b9de1e627567f (patch)
tree120e91e32a5854f75dc7d3705efe79480bb1e86c /toxcore/network.h
parentd67624bf99d03ecb754a5f406a971ad41de1cd04 (diff)
Removed now useless atributes from structs.
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index 6e1f2244..b42bfbf4 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -134,7 +134,7 @@ typedef int sock_t;
134#define TCP_INET6 (AF_INET6 + 3) 134#define TCP_INET6 (AF_INET6 + 3)
135#define TCP_FAMILY (AF_INET6 + 4) 135#define TCP_FAMILY (AF_INET6 + 4)
136 136
137typedef union __attribute__ ((__packed__)) 137typedef union
138{ 138{
139 uint8_t uint8[4]; 139 uint8_t uint8[4];
140 uint16_t uint16[2]; 140 uint16_t uint16[2];
@@ -143,7 +143,7 @@ typedef union __attribute__ ((__packed__))
143} 143}
144IP4; 144IP4;
145 145
146typedef union __attribute__ ((__packed__)) 146typedef union
147{ 147{
148 uint8_t uint8[16]; 148 uint8_t uint8[16];
149 uint16_t uint16[8]; 149 uint16_t uint16[8];
@@ -153,7 +153,7 @@ typedef union __attribute__ ((__packed__))
153} 153}
154IP6; 154IP6;
155 155
156typedef struct __attribute__ ((__packed__)) 156typedef struct
157{ 157{
158 uint8_t family; 158 uint8_t family;
159 union { 159 union {
@@ -163,7 +163,7 @@ typedef struct __attribute__ ((__packed__))
163} 163}
164IP; 164IP;
165 165
166typedef struct __attribute__ ((__packed__)) __attribute__((gcc_struct)) 166typedef struct
167{ 167{
168 IP ip; 168 IP ip;
169 uint16_t port; 169 uint16_t port;