Changeset ece1759 in rtems


Ignore:
Timestamp:
Nov 28, 2011, 5:51:47 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
b0bd1b6
Parents:
7e8ed4d
Message:

2011-11-28 Joel Sherrill <joel.sherrill@…>

PR 1941/cpukit

  • libmisc/monitor/mon-server.c, score/include/rtems/system.h: Remove use of RTEMS_offset() in favor of standard offsetof(). This was undocumented and there was only one internal use. Change noted in 4.11 release notes.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r7e8ed4d rece1759  
     12011-11-28      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        PR 1941/cpukit
     4        * libmisc/monitor/mon-server.c, score/include/rtems/system.h: Remove
     5        use of RTEMS_offset() in favor of standard offsetof(). This was
     6        undocumented and there was only one internal use. Change noted in
     7        4.11 release notes.
     8
    192011-11-28      Werner Almesberger <werner@almesberger.net>
    210
  • cpukit/libmisc/monitor/mon-server.c

    r7e8ed4d rece1759  
    161161                response.result1 = size;
    162162
    163 #define SERVER_OVERHEAD  (RTEMS_offsetof(rtems_monitor_server_response_t, \
     163#define SERVER_OVERHEAD  (offsetof(rtems_monitor_server_response_t, \
    164164                                         payload))
    165165
  • cpukit/score/include/rtems/system.h

    r7e8ed4d rece1759  
    3535
    3636/**
    37  *  This macro is used to obtain the offset of a field in a structure.
    38  */
    39 #define RTEMS_offsetof(type, field) \
    40        ((uintptr_t) &(((type *) 0)->field))
    41 
    42 /**
    4337 *  The following is the extern for the RTEMS version string.
    4438 *
Note: See TracChangeset for help on using the changeset viewer.