summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-04-29 03:13:13 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-04-29 03:13:13 +0000
commit093d20d1c0648f697b25dc6e3d6518a14287b3ea (patch)
tree32591da4cfa6779c94846df25710facc753435f7
parent2010-04-28 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff)
downloadrtems-093d20d1c0648f697b25dc6e3d6518a14287b3ea.tar.bz2
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.
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/libnetworking/libc/map_v4v6.c2
2 files changed, 6 insertions, 1 deletions
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 <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>
* 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 */