diff options
author | irungentoo <irungentoo@gmail.com> | 2013-09-15 09:47:17 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-09-15 09:47:17 -0400 |
commit | bbeb6e15cdd4135f1922146741d8c9d709f808eb (patch) | |
tree | 107e1f18992245ad6b2883fcc316a2236d53fdc8 /toxcore/LAN_discovery.c | |
parent | 43b609d41cd24435eccf6ead89f12fff888915f4 (diff) |
Fixed portability problems.
Diffstat (limited to 'toxcore/LAN_discovery.c')
-rw-r--r-- | toxcore/LAN_discovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c index db07755d..cf4196d2 100644 --- a/toxcore/LAN_discovery.c +++ b/toxcore/LAN_discovery.c | |||
@@ -171,7 +171,7 @@ static int LAN_ip(IP ip) | |||
171 | return 0; | 171 | return 0; |
172 | 172 | ||
173 | /* embedded IPv4-in-IPv6 */ | 173 | /* embedded IPv4-in-IPv6 */ |
174 | if (IN6_IS_ADDR_V4MAPPED(&ip.ip6)) { | 174 | if (IN6_IS_ADDR_V4MAPPED(&ip.ip6.in6_addr)) { |
175 | IP ip4; | 175 | IP ip4; |
176 | ip4.family = AF_INET; | 176 | ip4.family = AF_INET; |
177 | ip4.ip4.uint32 = ip.ip6.uint32[3]; | 177 | ip4.ip4.uint32 = ip.ip6.uint32[3]; |