mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 21:40:12 +00:00
* posix/tst-rfc3484.c (do_test): Also initialize source_addr_flags
field. * posix/tst-rfc3484-2.c (do_test): Likewise.
This commit is contained in:
parent
4c5bc8287b
commit
bdefc84c58
@ -1,5 +1,9 @@
|
||||
2006-04-24 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* posix/tst-rfc3484.c (do_test): Also initialize source_addr_flags
|
||||
field.
|
||||
* posix/tst-rfc3484-2.c (do_test): Likewise.
|
||||
|
||||
* posix/tst-rfc3484.c: Include <ifaddrs.h> early.
|
||||
* posix/tst-rfc3484-2.c: Likewise.
|
||||
|
||||
|
@ -84,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));
|
||||
|
||||
|
||||
@ -106,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));
|
||||
|
||||
|
||||
|
@ -79,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);
|
||||
|
Loading…
Reference in New Issue
Block a user