diff options
author | irungentoo <irungentoo@gmail.com> | 2014-09-25 16:49:05 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-09-25 16:49:05 -0400 |
commit | ebdfa892b313774085e8d3d9c71b9de1e627567f (patch) | |
tree | 120e91e32a5854f75dc7d3705efe79480bb1e86c /toxcore/network.h | |
parent | d67624bf99d03ecb754a5f406a971ad41de1cd04 (diff) |
Removed now useless atributes from structs.
Diffstat (limited to 'toxcore/network.h')
-rw-r--r-- | toxcore/network.h | 8 |
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 | ||
137 | typedef union __attribute__ ((__packed__)) | 137 | typedef 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 | } |
144 | IP4; | 144 | IP4; |
145 | 145 | ||
146 | typedef union __attribute__ ((__packed__)) | 146 | typedef 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 | } |
154 | IP6; | 154 | IP6; |
155 | 155 | ||
156 | typedef struct __attribute__ ((__packed__)) | 156 | typedef 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 | } |
164 | IP; | 164 | IP; |
165 | 165 | ||
166 | typedef struct __attribute__ ((__packed__)) __attribute__((gcc_struct)) | 166 | typedef struct |
167 | { | 167 | { |
168 | IP ip; | 168 | IP ip; |
169 | uint16_t port; | 169 | uint16_t port; |