change log for rtems (2010-04-29)

rtems-vc at rtems.org rtems-vc at rtems.org
Thu Apr 29 10:10:50 UTC 2010


 *ralf*:
2010-04-29	Ralf Corsépius <ralf.corsepius at rtems.org>

	* librpc/src/rpc/clnt_udp.c, librpc/src/xdr/xdr_mem.c:
	Use [u]intptr_t instead of [u_]long for better 16bit compliance.

M 1.2279  cpukit/ChangeLog
M    1.9  cpukit/librpc/src/rpc/clnt_udp.c
M    1.6  cpukit/librpc/src/xdr/xdr_mem.c

diff -u rtems/cpukit/ChangeLog:1.2278 rtems/cpukit/ChangeLog:1.2279
--- rtems/cpukit/ChangeLog:1.2278	Thu Apr 29 02:45:01 2010
+++ rtems/cpukit/ChangeLog	Thu Apr 29 04:42:51 2010
@@ -1,5 +1,10 @@
 2010-04-29	Ralf Corsépius <ralf.corsepius at rtems.org>
 
+	* librpc/src/rpc/clnt_udp.c, librpc/src/xdr/xdr_mem.c:
+	Use [u]intptr_t instead of [u_]long for better 16bit compliance.
+
+2010-04-29	Ralf Corsépius <ralf.corsepius at rtems.org>
+
 	* aclocal/enable-itron.m4, aclocal/check-itron.m4: Replace
 	RTEMS_HAS_ITRON_API with enable_itron.
 	* librpc/src/rpc/pmap_rmt.c: Use uintptr_t for better 16bit

diff -u rtems/cpukit/librpc/src/rpc/clnt_udp.c:1.8 rtems/cpukit/librpc/src/rpc/clnt_udp.c:1.9
--- rtems/cpukit/librpc/src/rpc/clnt_udp.c:1.8	Sat Mar 27 21:35:23 2010
+++ rtems/cpukit/librpc/src/rpc/clnt_udp.c	Thu Apr 29 04:42:52 2010
@@ -123,10 +123,10 @@
 	register struct cu_data *cu = NULL;
 	struct timeval now;
 	struct rpc_msg call_msg;
-	static u_int32_t disrupt;
+	static uintptr_t disrupt;
 
 	if (disrupt == 0)
-		disrupt = (u_int32_t)(long)raddr;
+		disrupt = (uintptr_t)raddr;
 
 	cl = (CLIENT *)mem_alloc(sizeof(CLIENT));
 	if (cl == NULL) {

diff -u rtems/cpukit/librpc/src/xdr/xdr_mem.c:1.5 rtems/cpukit/librpc/src/xdr/xdr_mem.c:1.6
--- rtems/cpukit/librpc/src/xdr/xdr_mem.c:1.5	Sat Mar 27 21:40:16 2010
+++ rtems/cpukit/librpc/src/xdr/xdr_mem.c	Thu Apr 29 04:42:52 2010
@@ -202,7 +202,7 @@
 {
 
 	/* XXX w/64-bit pointers, u_int not enough! */
-	return ((u_long)xdrs->x_private - (u_long)xdrs->x_base);
+	return ((uintptr_t)xdrs->x_private - (uintptr_t)xdrs->x_base);
 }
 
 static bool_t
@@ -213,10 +213,10 @@
 	register caddr_t newaddr = xdrs->x_base + pos;
 	register caddr_t lastaddr = xdrs->x_private + xdrs->x_handy;
 
-	if ((long)newaddr > (long)lastaddr)
+	if ((intptr_t)newaddr > (intptr_t)lastaddr)
 		return (FALSE);
 	xdrs->x_private = newaddr;
-	xdrs->x_handy = (long)lastaddr - (long)newaddr;
+	xdrs->x_handy = (intptr_t)lastaddr - (intptr_t)newaddr;
 	return (TRUE);
 }
 



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100429/028ddec9/attachment-0001.html>


More information about the vc mailing list