Ignore:
Timestamp:
Aug 26, 2013, 12:27:52 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
58a5889
Parents:
d56f76a
git-author:
Sebastian Huber <sebastian.huber@…> (08/26/13 12:27:52)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/27/13 08:48:16)
Message:

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().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/__usrenv.c

    rd56f76a r23de794d  
    219219
    220220rtems_filesystem_mount_table_entry_t rtems_filesystem_null_mt_entry = {
    221   .location_chain = {
    222     .Head = {
    223       .Node = {
    224         .next = &rtems_filesystem_global_location_null.location.mt_entry_node,
    225         .previous = NULL
    226       },
    227       .fill = &rtems_filesystem_global_location_null.location.mt_entry_node,
    228     }
    229   },
     221  .location_chain = RTEMS_CHAIN_INITIALIZER_ONE_NODE(
     222    &rtems_filesystem_global_location_null.location.mt_entry_node
     223  ),
    230224  .ops = &null_ops,
    231225  .mt_point_node = &rtems_filesystem_global_location_null,
     
    237231rtems_filesystem_global_location_t rtems_filesystem_global_location_null = {
    238232  .location = {
    239     .mt_entry_node = {
    240       .next = &rtems_filesystem_null_mt_entry.location_chain.Tail.Node,
    241       .previous = &rtems_filesystem_null_mt_entry.location_chain.Head.Node
    242     },
     233    .mt_entry_node = RTEMS_CHAIN_NODE_INITIALIZER_ONE_NODE_CHAIN(
     234      &rtems_filesystem_null_mt_entry.location_chain
     235    ),
    243236    .handlers = &rtems_filesystem_null_handlers,
    244237    .mt_entry = &rtems_filesystem_null_mt_entry
Note: See TracChangeset for help on using the changeset viewer.