Changeset 3ac29f0a in rtems for cpukit/librpc


Ignore:
Timestamp:
Apr 29, 2010, 9:42:52 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
b1d4e42
Parents:
292b0c3
Message:

2010-04-29 Ralf Corsépius <ralf.corsepius@…>

  • librpc/src/rpc/clnt_udp.c, librpc/src/xdr/xdr_mem.c: Use [u]intptr_t instead of [u_]long for better 16bit compliance.
Location:
cpukit/librpc/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/librpc/src/rpc/clnt_udp.c

    r292b0c3 r3ac29f0a  
    124124        struct timeval now;
    125125        struct rpc_msg call_msg;
    126         static u_int32_t disrupt;
     126        static uintptr_t disrupt;
    127127
    128128        if (disrupt == 0)
    129                 disrupt = (u_int32_t)(long)raddr;
     129                disrupt = (uintptr_t)raddr;
    130130
    131131        cl = (CLIENT *)mem_alloc(sizeof(CLIENT));
  • cpukit/librpc/src/xdr/xdr_mem.c

    r292b0c3 r3ac29f0a  
    203203
    204204        /* XXX w/64-bit pointers, u_int not enough! */
    205         return ((u_long)xdrs->x_private - (u_long)xdrs->x_base);
     205        return ((uintptr_t)xdrs->x_private - (uintptr_t)xdrs->x_base);
    206206}
    207207
     
    214214        register caddr_t lastaddr = xdrs->x_private + xdrs->x_handy;
    215215
    216         if ((long)newaddr > (long)lastaddr)
     216        if ((intptr_t)newaddr > (intptr_t)lastaddr)
    217217                return (FALSE);
    218218        xdrs->x_private = newaddr;
    219         xdrs->x_handy = (long)lastaddr - (long)newaddr;
     219        xdrs->x_handy = (intptr_t)lastaddr - (intptr_t)newaddr;
    220220        return (TRUE);
    221221}
Note: See TracChangeset for help on using the changeset viewer.