From c922a9dd0a47d196cfc7818f1c9165912f0b5388 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 14 Apr 2010 12:42:11 +0000 Subject: =?UTF-8?q?2010-04-14=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libnetworking/libc/gethostbydns.c: Use uintptr_t instead of u_long for 16bit target compliance. --- cpukit/libnetworking/libc/gethostbydns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libnetworking/libc/gethostbydns.c') 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); -- cgit v1.2.3