summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-23 10:33:51 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-28 06:19:52 +0200
commit69b4fe592fb26f3421add3c564677d78022bcf5a (patch)
treec77f799fdd0fc92795b98820009896c35b3dde97 /testsuites/sptests
parentscore: Improve _CORE_message_queue_Initialize() (diff)
downloadrtems-69b4fe592fb26f3421add3c564677d78022bcf5a.tar.bz2
score: Simplify CORE_message_queue_Buffer
Merge CORE_message_queue_Buffer structure into CORE_message_queue_Buffer_control. Use a zero-length array for the actual message buffer. This reduces the structure size on all targets. Update #4007.
Diffstat (limited to 'testsuites/sptests')
-rw-r--r--testsuites/sptests/spmsgq_err01/init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/testsuites/sptests/spmsgq_err01/init.c b/testsuites/sptests/spmsgq_err01/init.c
index f0c889a1ff..c68d30da16 100644
--- a/testsuites/sptests/spmsgq_err01/init.c
+++ b/testsuites/sptests/spmsgq_err01/init.c
@@ -101,8 +101,7 @@ rtems_task Init(
/* not enough memory for messages */
status = rtems_message_queue_create(
Queue_name[ 1 ],
- SIZE_MAX
- / ( sizeof( uintptr_t ) + sizeof( CORE_message_queue_Buffer_control ) ),
+ SIZE_MAX / ( sizeof( uintptr_t ) + sizeof( CORE_message_queue_Buffer ) ),
1,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id[ 1 ]