mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-26 17:23:27 +08:00
2011-11-28 Joel Sherrill <joel.sherrill@oarcorp.com>
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.
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
2011-11-28 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
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.
|
||||
|
||||
2011-11-28 Werner Almesberger <werner@almesberger.net>
|
||||
|
||||
PR 1961/cpukit
|
||||
|
||||
@@ -160,7 +160,7 @@ rtems_monitor_server_task(
|
||||
response.result0 = next_id;
|
||||
response.result1 = size;
|
||||
|
||||
#define SERVER_OVERHEAD (RTEMS_offsetof(rtems_monitor_server_response_t, \
|
||||
#define SERVER_OVERHEAD (offsetof(rtems_monitor_server_response_t, \
|
||||
payload))
|
||||
|
||||
status = rtems_message_queue_send(request.return_id,
|
||||
|
||||
@@ -33,12 +33,6 @@ extern "C" {
|
||||
int POSIX_NOT_IMPLEMENTED( void );
|
||||
#endif
|
||||
|
||||
/**
|
||||
* This macro is used to obtain the offset of a field in a structure.
|
||||
*/
|
||||
#define RTEMS_offsetof(type, field) \
|
||||
((uintptr_t) &(((type *) 0)->field))
|
||||
|
||||
/**
|
||||
* The following is the extern for the RTEMS version string.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user