mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-10 11:20:10 +00:00
* posix/tst-rfc3484-2.c (do_test): Likewise.
This commit is contained in:
parent
a94673e616
commit
dfcf64cedb
@ -7,6 +7,7 @@
|
|||||||
(getaddrinfo): Initialize service_order.
|
(getaddrinfo): Initialize service_order.
|
||||||
* posix/tst-rfc3484.c (do_test): Adjust for addition of
|
* posix/tst-rfc3484.c (do_test): Adjust for addition of
|
||||||
service_order field to sorting structure.
|
service_order field to sorting structure.
|
||||||
|
* posix/tst-rfc3484-2.c (do_test): Likewise.
|
||||||
|
|
||||||
* include/time.h: Declare __tzset_parse_tz and __tzset_compute.
|
* include/time.h: Declare __tzset_parse_tz and __tzset_compute.
|
||||||
* time/tzset.c (tzset_internal): Break TZ string parsing out into
|
* time/tzset.c (tzset_internal): Break TZ string parsing out into
|
||||||
|
@ -98,12 +98,14 @@ do_test (void)
|
|||||||
results[0].got_source_addr = true;
|
results[0].got_source_addr = true;
|
||||||
results[0].source_addr_len = sizeof (so1);
|
results[0].source_addr_len = sizeof (so1);
|
||||||
results[0].source_addr_flags = 0;
|
results[0].source_addr_flags = 0;
|
||||||
|
results[0].service_order = 0;
|
||||||
memcpy (&results[0].source_addr, &so1, sizeof (so1));
|
memcpy (&results[0].source_addr, &so1, sizeof (so1));
|
||||||
|
|
||||||
results[1].dest_addr = &ai2;
|
results[1].dest_addr = &ai2;
|
||||||
results[1].got_source_addr = true;
|
results[1].got_source_addr = true;
|
||||||
results[1].source_addr_len = sizeof (so2);
|
results[1].source_addr_len = sizeof (so2);
|
||||||
results[1].source_addr_flags = 0;
|
results[1].source_addr_flags = 0;
|
||||||
|
results[1].service_order = 1;
|
||||||
memcpy (&results[1].source_addr, &so2, sizeof (so2));
|
memcpy (&results[1].source_addr, &so2, sizeof (so2));
|
||||||
|
|
||||||
|
|
||||||
@ -122,12 +124,14 @@ do_test (void)
|
|||||||
results[1].got_source_addr = true;
|
results[1].got_source_addr = true;
|
||||||
results[1].source_addr_len = sizeof (so1);
|
results[1].source_addr_len = sizeof (so1);
|
||||||
results[1].source_addr_flags = 0;
|
results[1].source_addr_flags = 0;
|
||||||
|
results[1].service_order = 1;
|
||||||
memcpy (&results[1].source_addr, &so1, sizeof (so1));
|
memcpy (&results[1].source_addr, &so1, sizeof (so1));
|
||||||
|
|
||||||
results[0].dest_addr = &ai2;
|
results[0].dest_addr = &ai2;
|
||||||
results[0].got_source_addr = true;
|
results[0].got_source_addr = true;
|
||||||
results[0].source_addr_len = sizeof (so2);
|
results[0].source_addr_len = sizeof (so2);
|
||||||
results[0].source_addr_flags = 0;
|
results[0].source_addr_flags = 0;
|
||||||
|
results[0].service_order = 0;
|
||||||
memcpy (&results[0].source_addr, &so2, sizeof (so2));
|
memcpy (&results[0].source_addr, &so2, sizeof (so2));
|
||||||
|
|
||||||
|
|
||||||
|
@ -93,6 +93,7 @@ do_test (void)
|
|||||||
memcpy(&results[i].source_addr, &so, sizeof (so));
|
memcpy(&results[i].source_addr, &so, sizeof (so));
|
||||||
results[i].source_addr_len = sizeof (so);
|
results[i].source_addr_len = sizeof (so);
|
||||||
results[i].source_addr_flags = 0;
|
results[i].source_addr_flags = 0;
|
||||||
|
results[i].service_order = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
qsort (results, naddrs, sizeof (results[0]), rfc3484_sort);
|
qsort (results, naddrs, sizeof (results[0]), rfc3484_sort);
|
||||||
|
Loading…
Reference in New Issue
Block a user