diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-04-25 09:20:28 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2006-04-25 09:20:28 +0000 |
commit | 217e7b931e322ebc305a251a02a6f24d9166b844 (patch) | |
tree | 232426904ba8fc5b7e45ac1d4dc2dc5955ed4998 /posix | |
parent | 1100b0e29213d536814d675cb3e1faff447db322 (diff) | |
download | glibc-217e7b931e322ebc305a251a02a6f24d9166b844.tar.gz |
Updated to fedora-glibc-20060425T0903
Diffstat (limited to 'posix')
-rw-r--r-- | posix/tst-rfc3484-2.c | 5 | ||||
-rw-r--r-- | posix/tst-rfc3484.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/posix/tst-rfc3484-2.c b/posix/tst-rfc3484-2.c index b3987c8cd5..c25b0c2172 100644 --- a/posix/tst-rfc3484-2.c +++ b/posix/tst-rfc3484-2.c @@ -1,5 +1,6 @@ #include <stdbool.h> #include <stdio.h> +#include <ifaddrs.h> /* Internal definitions used in the libc code. */ #define __getservbyname_r getservbyname_r @@ -83,11 +84,13 @@ do_test (void) results[0].dest_addr = &ai1; results[0].got_source_addr = true; results[0].source_addr_len = sizeof (so1); + results[0].source_addr_flags = 0; memcpy (&results[0].source_addr, &so1, sizeof (so1)); results[1].dest_addr = &ai2; results[1].got_source_addr = true; results[1].source_addr_len = sizeof (so2); + results[1].source_addr_flags = 0; memcpy (&results[1].source_addr, &so2, sizeof (so2)); @@ -105,11 +108,13 @@ do_test (void) results[1].dest_addr = &ai1; results[1].got_source_addr = true; results[1].source_addr_len = sizeof (so1); + results[1].source_addr_flags = 0; memcpy (&results[1].source_addr, &so1, sizeof (so1)); results[0].dest_addr = &ai2; results[0].got_source_addr = true; results[0].source_addr_len = sizeof (so2); + results[0].source_addr_flags = 0; memcpy (&results[0].source_addr, &so2, sizeof (so2)); diff --git a/posix/tst-rfc3484.c b/posix/tst-rfc3484.c index abfb76d543..8d273aec84 100644 --- a/posix/tst-rfc3484.c +++ b/posix/tst-rfc3484.c @@ -1,5 +1,6 @@ #include <stdbool.h> #include <stdio.h> +#include <ifaddrs.h> /* Internal definitions used in the libc code. */ #define __getservbyname_r getservbyname_r @@ -78,6 +79,7 @@ do_test (void) results[i].got_source_addr = true; memcpy(&results[i].source_addr, &so, sizeof (so)); results[i].source_addr_len = sizeof (so); + results[i].source_addr_flags = 0; } qsort (results, naddrs, sizeof (results[0]), rfc3484_sort); |