From 093d20d1c0648f697b25dc6e3d6518a14287b3ea Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 29 Apr 2010 03:13:13 +0000 Subject: [PATCH] =?UTF-8?q?2010-04-29=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libnetworking/libc/map_v4v6.c: Use uintptr_t instead of u_long for better 16bit target compliance. --- cpukit/ChangeLog | 5 +++++ cpukit/libnetworking/libc/map_v4v6.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index d57519cb9d..efa928c6fb 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2010-04-29 Ralf Corsépius + + * libnetworking/libc/map_v4v6.c: Use uintptr_t instead of u_long for + better 16bit target compliance. + 2010-04-28 Joel Sherrill * libcsupport/src/chdir.c: Check for NULL pointer. diff --git a/cpukit/libnetworking/libc/map_v4v6.c b/cpukit/libnetworking/libc/map_v4v6.c index edf2a07905..0b13285756 100644 --- a/cpukit/libnetworking/libc/map_v4v6.c +++ b/cpukit/libnetworking/libc/map_v4v6.c @@ -108,7 +108,7 @@ _map_v4v6_hostent( hp->h_addrtype = AF_INET6; hp->h_length = IN6ADDRSZ; 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)) { /* Out of memory. Truncate address list here. XXX */