diff options
author | ume <ume@FreeBSD.org> | 2005-06-03 03:32:06 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2005-06-03 03:32:06 +0000 |
commit | 0d8a6fcf732984f217c6997539424b40833a93b4 (patch) | |
tree | 702e58890db0bbb3857a75fc83bf46e91d817d88 /lib/libc/net/getnetbydns.c | |
parent | 1d986ea68c6db47631382924459e834b5e125380 (diff) | |
download | FreeBSD-src-0d8a6fcf732984f217c6997539424b40833a93b4.zip FreeBSD-src-0d8a6fcf732984f217c6997539424b40833a93b4.tar.gz |
- Remove padding for ABI compatibility of n_net member from struct
netent.
- Change 1st argument of getnetbyaddr() to an uint32_t on 64 bit
arch as well to confirm to POSIX-2001.
These changes break ABI compatibility on 64 bit arch.
There is similar padding issue for ai_addrlen of struct addrinfo.
However, it is leaved as is for now.
Discussed on: arch@, standards@ and current@
X-MFC after: never
Diffstat (limited to 'lib/libc/net/getnetbydns.c')
-rw-r--r-- | lib/libc/net/getnetbydns.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/libc/net/getnetbydns.c b/lib/libc/net/getnetbydns.c index 5eca268..7dbb725 100644 --- a/lib/libc/net/getnetbydns.c +++ b/lib/libc/net/getnetbydns.c @@ -259,9 +259,6 @@ getnetanswer(querybuf *answer, int anslen, int net_i, struct netent *ne, break; } ne->n_aliases++; -#if __LONG_BIT == 64 - ne->__n_pad0 = 0; /* ABI compatibility */ -#endif return 0; } h_errno = TRY_AGAIN; @@ -334,9 +331,6 @@ _dns_getnetbyaddr(void *rval, void *cb_data, va_list ap) while ((net & 0xff) == 0 && net != 0) net >>= 8; ne->n_net = net; -#if __LONG_BIT == 64 - ne->__n_pad0 = 0; /* ABI compatibility */ -#endif return NS_SUCCESS; } return NS_NOTFOUND; |