Fix usr.sbin/rpcbind ATF tests on 32-bit platforms
usr.sbin/rpcbind/tests/addrmerge_test.c Fix some sizeof calculations that work only by luck on 64-bit platforms. PR: 210314 Reviewed by: ngie Approved by: re (kib) Reported by: Mark Millard MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D6855
This commit is contained in:
parent
5b40d9601c
commit
498a196b80
@ -92,15 +92,15 @@ mock_ifaddr4(const char* name, const char* addr, const char* mask,
|
||||
|
||||
in->sin_family = AF_INET;
|
||||
in->sin_port = 0;
|
||||
in->sin_len = sizeof(in);
|
||||
in->sin_len = sizeof(*in);
|
||||
in->sin_addr.s_addr = inet_addr(addr);
|
||||
mask_in->sin_family = AF_INET;
|
||||
mask_in->sin_port = 0;
|
||||
mask_in->sin_len = sizeof(mask_in);
|
||||
mask_in->sin_len = sizeof(*mask_in);
|
||||
mask_in->sin_addr.s_addr = inet_addr(mask);
|
||||
bcast_in->sin_family = AF_INET;
|
||||
bcast_in->sin_port = 0;
|
||||
bcast_in->sin_len = sizeof(bcast_in);
|
||||
bcast_in->sin_len = sizeof(*bcast_in);
|
||||
bcast_in->sin_addr.s_addr = inet_addr(bcast);
|
||||
*ifaddr = (struct ifaddrs) {
|
||||
.ifa_next = NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user