summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/getnetbynis.c
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2005-06-03 03:32:06 +0000
committerume <ume@FreeBSD.org>2005-06-03 03:32:06 +0000
commit0d8a6fcf732984f217c6997539424b40833a93b4 (patch)
tree702e58890db0bbb3857a75fc83bf46e91d817d88 /lib/libc/net/getnetbynis.c
parent1d986ea68c6db47631382924459e834b5e125380 (diff)
downloadFreeBSD-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/getnetbynis.c')
-rw-r--r--lib/libc/net/getnetbynis.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/libc/net/getnetbynis.c b/lib/libc/net/getnetbynis.c
index 70785ac..200e7a4 100644
--- a/lib/libc/net/getnetbynis.c
+++ b/lib/libc/net/getnetbynis.c
@@ -99,9 +99,6 @@ _getnetbynis(const char *name, char *map, int af, struct netent *ne,
cp++;
ne->n_net = inet_network(cp);
-#if __LONG_BIT == 64
- ne->__n_pad0 = 0; /* ABI compatibility */
-#endif
ne->n_addrtype = AF_INET;
q = ne->n_aliases = ned->net_aliases;
OpenPOWER on IntegriCloud