<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-04-29)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-04-29 Ralf Corsépius <ralf.corsepius@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.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2278&r2=text&tr2=1.2279&diff_format=h">M</a></td><td width='1%'>1.2279</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/librpc/src/rpc/clnt_udp.c.diff?r1=text&tr1=1.8&r2=text&tr2=1.9&diff_format=h">M</a></td><td width='1%'>1.9</td><td width='100%'>cpukit/librpc/src/rpc/clnt_udp.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/librpc/src/xdr/xdr_mem.c.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>cpukit/librpc/src/xdr/xdr_mem.c</td></tr>
</table>
<pre>
<font color='#006600'>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
</font><font color='#997700'>@@ -1,5 +1,10 @@
</font> 2010-04-29        Ralf Corsépius <ralf.corsepius@rtems.org>
 
<font color='#000088'>+   * 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@rtems.org>
+
</font>   * 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

<font color='#006600'>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
</font><font color='#997700'>@@ -123,10 +123,10 @@
</font>   register struct cu_data *cu = NULL;
        struct timeval now;
        struct rpc_msg call_msg;
<font color='#880000'>-   static u_int32_t disrupt;
</font><font color='#000088'>+      static uintptr_t disrupt;
</font> 
        if (disrupt == 0)
<font color='#880000'>-           disrupt = (u_int32_t)(long)raddr;
</font><font color='#000088'>+              disrupt = (uintptr_t)raddr;
</font> 
        cl = (CLIENT *)mem_alloc(sizeof(CLIENT));
        if (cl == NULL) {

<font color='#006600'>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
</font><font color='#997700'>@@ -202,7 +202,7 @@
</font> {
 
        /* XXX w/64-bit pointers, u_int not enough! */
<font color='#880000'>-   return ((u_long)xdrs->x_private - (u_long)xdrs->x_base);
</font><font color='#000088'>+      return ((uintptr_t)xdrs->x_private - (uintptr_t)xdrs->x_base);
</font> }
 
 static bool_t
<font color='#997700'>@@ -213,10 +213,10 @@
</font>   register caddr_t newaddr = xdrs->x_base + pos;
        register caddr_t lastaddr = xdrs->x_private + xdrs->x_handy;
 
<font color='#880000'>-   if ((long)newaddr > (long)lastaddr)
</font><font color='#000088'>+      if ((intptr_t)newaddr > (intptr_t)lastaddr)
</font>           return (FALSE);
        xdrs->x_private = newaddr;
<font color='#880000'>-   xdrs->x_handy = (long)lastaddr - (long)newaddr;
</font><font color='#000088'>+      xdrs->x_handy = (intptr_t)lastaddr - (intptr_t)newaddr;
</font>   return (TRUE);
 }
 
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>