mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 14:18:20 +00:00
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:
@@ -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.
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user