mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-07 13:45:00 -05:00
Fix typo
This commit is contained in:
parent
86cf5f32f2
commit
efa9286d6f
2 changed files with 7 additions and 4 deletions
|
|
@ -357,7 +357,7 @@ typedef struct xLIST
|
|||
#define listINSERT_END( pxList, pxNewListItem ) \
|
||||
do { \
|
||||
ListItem_t * const pxIndex = ( pxList )->pxIndex; \
|
||||
UBaseType_t uxNumberOfitems; \
|
||||
UBaseType_t uxNumberOfItems; \
|
||||
\
|
||||
/* Only effective when configASSERT() is also defined, these tests may catch \
|
||||
* the list data structures being overwritten in memory. They will not catch \
|
||||
|
|
|
|||
9
list.c
9
list.c
|
|
@ -106,6 +106,7 @@ void vListInsertEnd( List_t * const pxList,
|
|||
ListItem_t * const pxNewListItem )
|
||||
{
|
||||
ListItem_t * const pxIndex = pxList->pxIndex;
|
||||
UBaseType_t uxNumberOfItems;
|
||||
|
||||
traceENTER_vListInsertEnd( pxList, pxNewListItem );
|
||||
|
||||
|
|
@ -130,7 +131,7 @@ void vListInsertEnd( List_t * const pxList,
|
|||
/* Remember which list the item is in. */
|
||||
pxNewListItem->pxContainer = pxList;
|
||||
|
||||
UBaseType_t uxNumberOfItems = ( pxList->uxNumberOfItems );
|
||||
uxNumberOfItems = ( pxList->uxNumberOfItems );
|
||||
uxNumberOfItems++;
|
||||
( pxList->uxNumberOfItems ) = uxNumberOfItems;
|
||||
|
||||
|
|
@ -143,6 +144,7 @@ void vListInsert( List_t * const pxList,
|
|||
{
|
||||
ListItem_t * pxIterator;
|
||||
const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
|
||||
UBaseType_t uxNumberOfItems;
|
||||
|
||||
traceENTER_vListInsert( pxList, pxNewListItem );
|
||||
|
||||
|
|
@ -207,7 +209,7 @@ void vListInsert( List_t * const pxList,
|
|||
* item later. */
|
||||
pxNewListItem->pxContainer = pxList;
|
||||
|
||||
UBaseType_t uxNumberOfItems = ( pxList->uxNumberOfItems );
|
||||
uxNumberOfItems = ( pxList->uxNumberOfItems );
|
||||
uxNumberOfItems++;
|
||||
( pxList->uxNumberOfItems ) = uxNumberOfItems;
|
||||
|
||||
|
|
@ -220,6 +222,7 @@ UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
|
|||
/* The list item knows which list it is in. Obtain the list from the list
|
||||
* item. */
|
||||
List_t * const pxList = pxItemToRemove->pxContainer;
|
||||
UBaseType_t uxNumberOfItems;
|
||||
|
||||
traceENTER_uxListRemove( pxItemToRemove );
|
||||
|
||||
|
|
@ -242,7 +245,7 @@ UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
|
|||
}
|
||||
|
||||
pxItemToRemove->pxContainer = NULL;
|
||||
UBaseType_t uxNumberOfItems = ( pxList->uxNumberOfItems );
|
||||
uxNumberOfItems = ( pxList->uxNumberOfItems );
|
||||
uxNumberOfItems--;
|
||||
( pxList->uxNumberOfItems ) = uxNumberOfItems;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue