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.
This commit is contained in:
Ralf Corsepius
2010-04-14 12:42:11 +00:00
parent 36275c646e
commit c922a9dd0a
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
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.
* libnetworking/sys/sysctl.h: Change sysctl_oid->arg2 into int32_t
for 16bit target compliance.

View File

@@ -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);