Changeset 34c63d11 in rtems


Ignore:
Timestamp:
Apr 14, 2010, 12:43:21 PM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
01c5291a
Parents:
c922a9dd
Message:

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

  • libnetworking/sys/mbuf.h: Use uintptr_t instead of u_long for 16bit target compliance.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rc922a9dd r34c63d11  
    112010-04-14      Ralf Corsépius <ralf.corsepius@rtems.org>
    22
     3        * libnetworking/sys/mbuf.h: Use uintptr_t instead of u_long
     4        for 16bit target compliance.
    35        * libnetworking/libc/gethostbydns.c: Use uintptr_t instead of u_long
    46        for 16bit target compliance.
  • cpukit/libnetworking/sys/mbuf.h

    rc922a9dd r34c63d11  
    6464#define mtod(m, t)      ((t)((m)->m_data))
    6565#define dtom(x)         ((struct mbuf *)((intptr_t)(x) & ~(MSIZE-1)))
    66 #define mtocl(x)        (((u_long)(x) - (u_long)mbutl) >> MCLSHIFT)
     66#define mtocl(x)        (((uintptr_t)(x) - (uintptr_t)mbutl) >> MCLSHIFT)
    6767#define cltom(x)        ((caddr_t)((u_long)mbutl + ((u_long)(x) << MCLSHIFT)))
    6868
Note: See TracChangeset for help on using the changeset viewer.