2010-04-29 Ralf Corsépius <ralf.corsepius@rtems.org>

* libnetworking/libc/map_v4v6.c: Use uintptr_t instead of u_long for
	better 16bit target compliance.
This commit is contained in:
Ralf Corsepius
2010-04-29 03:13:13 +00:00
parent c5833ef828
commit 093d20d1c0
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2010-04-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/map_v4v6.c: Use uintptr_t instead of u_long for
better 16bit target compliance.
2010-04-28 Joel Sherrill <joel.sherrill@oarcorp.com> 2010-04-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/chdir.c: Check for NULL pointer. * libcsupport/src/chdir.c: Check for NULL pointer.

View File

@@ -108,7 +108,7 @@ _map_v4v6_hostent(
hp->h_addrtype = AF_INET6; hp->h_addrtype = AF_INET6;
hp->h_length = IN6ADDRSZ; hp->h_length = IN6ADDRSZ;
for (ap = hp->h_addr_list; *ap; ap++) { for (ap = hp->h_addr_list; *ap; ap++) {
int i = sizeof(align) - ((u_long)*bpp % sizeof(align)); int i = sizeof(align) - ((uintptr_t)*bpp % sizeof(align));
if (*lenp < (i + IN6ADDRSZ)) { if (*lenp < (i + IN6ADDRSZ)) {
/* Out of memory. Truncate address list here. XXX */ /* Out of memory. Truncate address list here. XXX */