summaryrefslogtreecommitdiffstats
path: root/c/src/tests/tmtests/tm13/task1.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c/src/tests/tmtests/tm13/task1.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/c/src/tests/tmtests/tm13/task1.c b/c/src/tests/tmtests/tm13/task1.c
index 317b1f1805..0b2afc8571 100644
--- a/c/src/tests/tmtests/tm13/task1.c
+++ b/c/src/tests/tmtests/tm13/task1.c
@@ -29,6 +29,8 @@ rtems_task High_task(
rtems_task_argument argument
);
+#define MESSAGE_SIZE (sizeof(long) * 4)
+
void Init(
rtems_task_argument argument
)
@@ -75,7 +77,7 @@ rtems_task test_init(
status = rtems_message_queue_create(
rtems_build_name( 'M', 'Q', '1', ' ' ),
OPERATION_COUNT,
- 16,
+ MESSAGE_SIZE,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id
);
@@ -104,7 +106,7 @@ rtems_task test_init(
}
Timer_initialize();
- (void) rtems_message_queue_urgent( Queue_id, (long (*)[4]) Buffer, 16 );
+ (void) rtems_message_queue_urgent( Queue_id, Buffer, MESSAGE_SIZE );
}
rtems_task Middle_tasks(