diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-02-14 20:51:55 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-02-14 20:51:55 +0000 |
commit | 35f13ef51dbf99c3d45d04f572e9e88795df7ae6 (patch) | |
tree | 8213605775c5f749fdabe683fbdea9106a6c32c1 /auto_tests/TCP_test.c | |
parent | 17a0b617f299c34563960bd4e9ed9a88e76ba92f (diff) |
Get rid of the only GNU extension we used.
Diffstat (limited to 'auto_tests/TCP_test.c')
-rw-r--r-- | auto_tests/TCP_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/auto_tests/TCP_test.c b/auto_tests/TCP_test.c index 26a95942..2ae94618 100644 --- a/auto_tests/TCP_test.c +++ b/auto_tests/TCP_test.c | |||
@@ -39,10 +39,10 @@ static inline IP get_loopback() | |||
39 | IP ip; | 39 | IP ip; |
40 | #if USE_IPV6 | 40 | #if USE_IPV6 |
41 | ip.family = TOX_AF_INET6; | 41 | ip.family = TOX_AF_INET6; |
42 | ip.ip6 = get_ip6_loopback(); | 42 | ip.ip.v6 = get_ip6_loopback(); |
43 | #else | 43 | #else |
44 | ip.family = TOX_AF_INET; | 44 | ip.family = TOX_AF_INET; |
45 | ip.ip4 = get_ip4_loopback(); | 45 | ip.ip.v4 = get_ip4_loopback(); |
46 | #endif | 46 | #endif |
47 | return ip; | 47 | return ip; |
48 | } | 48 | } |