Changeset 9cfe137 in rtems for cpukit/librpc


Ignore:
Timestamp:
May 27, 2010, 12:37:41 PM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
d422a4d
Parents:
fac48e7d
Message:

2010-05-27 Ralf Corsépius <ralf.corsepius@…>

  • librpc/src/xdr/xdr_mem.c: Cosmetics from freebsd.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/librpc/src/xdr/xdr_mem.c

    rfac48e7d r9cfe137  
    211211        u_int pos)
    212212{
    213         register caddr_t newaddr = xdrs->x_base + pos;
    214         register caddr_t lastaddr = xdrs->x_private + xdrs->x_handy;
    215 
    216         if ((intptr_t)newaddr > (intptr_t)lastaddr)
     213        void *newaddr = xdrs->x_base + pos;
     214        void *lastaddr = xdrs->x_private + xdrs->x_handy;
     215
     216        if (newaddr > lastaddr)
    217217                return (FALSE);
    218218        xdrs->x_private = newaddr;
     
    230230        if (xdrs->x_handy >= len) {
    231231                xdrs->x_handy -= len;
    232                 buf = (int32_t *) xdrs->x_private;
     232                buf = (int32_t *)xdrs->x_private;
    233233                xdrs->x_private += len;
    234234        }
Note: See TracChangeset for help on using the changeset viewer.