diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-04-14 12:42:11 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-04-14 12:42:11 +0000 |
commit | c922a9dd0a47d196cfc7818f1c9165912f0b5388 (patch) | |
tree | f6f4aa2ef6d514cd69c41fd12ea432b795ed1b2b /cpukit/libnetworking/libc | |
parent | 2010-04-14 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-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 'cpukit/libnetworking/libc')
-rw-r--r-- | cpukit/libnetworking/libc/gethostbydns.c | 2 |
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); |