From 23de794d15f88845ee04f800387123856303c036 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 26 Aug 2013 14:27:52 +0200 Subject: score: Add and use CHAIN_INITIALIZER_ONE_NODE(). Add and use CHAIN_NODE_INITIALIZER_ONE_NODE_CHAIN(), RTEMS_CHAIN_INITIALIZER_ONE_NODE() and RTEMS_CHAIN_NODE_INITIALIZER_ONE_NODE_CHAIN(). --- cpukit/libcsupport/src/__usrenv.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'cpukit/libcsupport/src/__usrenv.c') diff --git a/cpukit/libcsupport/src/__usrenv.c b/cpukit/libcsupport/src/__usrenv.c index a0d96cb7eb..8e9e8c15ad 100644 --- a/cpukit/libcsupport/src/__usrenv.c +++ b/cpukit/libcsupport/src/__usrenv.c @@ -218,15 +218,9 @@ static const rtems_filesystem_operations_table null_ops = { }; rtems_filesystem_mount_table_entry_t rtems_filesystem_null_mt_entry = { - .location_chain = { - .Head = { - .Node = { - .next = &rtems_filesystem_global_location_null.location.mt_entry_node, - .previous = NULL - }, - .fill = &rtems_filesystem_global_location_null.location.mt_entry_node, - } - }, + .location_chain = RTEMS_CHAIN_INITIALIZER_ONE_NODE( + &rtems_filesystem_global_location_null.location.mt_entry_node + ), .ops = &null_ops, .mt_point_node = &rtems_filesystem_global_location_null, .mt_fs_root = &rtems_filesystem_global_location_null, @@ -236,10 +230,9 @@ rtems_filesystem_mount_table_entry_t rtems_filesystem_null_mt_entry = { rtems_filesystem_global_location_t rtems_filesystem_global_location_null = { .location = { - .mt_entry_node = { - .next = &rtems_filesystem_null_mt_entry.location_chain.Tail.Node, - .previous = &rtems_filesystem_null_mt_entry.location_chain.Head.Node - }, + .mt_entry_node = RTEMS_CHAIN_NODE_INITIALIZER_ONE_NODE_CHAIN( + &rtems_filesystem_null_mt_entry.location_chain + ), .handlers = &rtems_filesystem_null_handlers, .mt_entry = &rtems_filesystem_null_mt_entry }, -- cgit v1.2.3