summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc/gethostbydns.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-04-14 12:42:11 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-04-14 12:42:11 +0000
commitc922a9dd0a47d196cfc7818f1c9165912f0b5388 (patch)
treef6f4aa2ef6d514cd69c41fd12ea432b795ed1b2b /cpukit/libnetworking/libc/gethostbydns.c
parent2010-04-14 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-c922a9dd0a47d196cfc7818f1c9165912f0b5388.tar.bz2
2010-04-14 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/gethostbydns.c: Use uintptr_t instead of u_long for 16bit target compliance.
Diffstat (limited to '')
-rw-r--r--cpukit/libnetworking/libc/gethostbydns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libnetworking/libc/gethostbydns.c b/cpukit/libnetworking/libc/gethostbydns.c
index 880b81aa3e..38a0cdc6d6 100644
--- a/cpukit/libnetworking/libc/gethostbydns.c
+++ b/cpukit/libnetworking/libc/gethostbydns.c
@@ -393,7 +393,7 @@ gethostanswer(
buflen -= nn;
}
- bp += sizeof(align) - ((u_long)bp % sizeof(align));
+ bp += sizeof(align) - ((uintptr_t)bp % sizeof(align));
if (bp + n >= &hostbuf[sizeof hostbuf]) {
debugprintf("size (%d) too big\n", n);