summaryrefslogtreecommitdiff
path: root/FreeRTOS-Plus
diff options
context:
space:
mode:
authorAniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>2020-07-29 15:52:00 -0700
committerGitHub <noreply@github.com>2020-07-29 15:52:00 -0700
commit97551bf44e7dc7dc1e4484a8fd30f699255e8569 (patch)
tree4c10e9e244e345bbe7c4f0a13631531311a419d7 /FreeRTOS-Plus
parentf2611cc5e5999c4c87e040a8c2d2e6b5e77a16a6 (diff)
downloadfreertos-git-97551bf44e7dc7dc1e4484a8fd30f699255e8569.tar.gz
MISRA changes in FreeRTOS_TCP_WIN.c (#162)
Diffstat (limited to 'FreeRTOS-Plus')
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_WIN.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_WIN.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_WIN.c
index de1dd5ca3..5f8eb007e 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_WIN.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_WIN.c
@@ -86,7 +86,7 @@
#endif /* configUSE_TCP_WIN */
/*-----------------------------------------------------------*/
-extern void vListInsertGeneric( List_t * const pxList, ListItem_t * const pxNewListItem, MiniListItem_t * const pxWhere );
+static void vListInsertGeneric( List_t * const pxList, ListItem_t * const pxNewListItem, MiniListItem_t * const pxWhere );
/*
* All TCP sockets share a pool of segment descriptors (TCPSegment_t)
@@ -302,7 +302,7 @@ static portINLINE uint32_t ulTimerGetAge( const TCPTimer_t *pxTimer )
}
/*-----------------------------------------------------------*/
-void vListInsertGeneric( List_t * const pxList, ListItem_t * const pxNewListItem, MiniListItem_t * const pxWhere )
+static void vListInsertGeneric( List_t * const pxList, ListItem_t * const pxNewListItem, MiniListItem_t * const pxWhere )
{
/* Insert a new list item into pxList, it does not sort the list,
but it puts the item just before xListEnd, so it will be the last item
@@ -372,7 +372,6 @@ void vListInsertGeneric( List_t * const pxList, ListItem_t * const pxNewListItem
/* Find a segment with a given sequence number in the list of received
segments. */
-
pxEnd = ipPOINTER_CAST( const ListItem_t *, listGET_END_MARKER( &pxWindow->xRxSegments ) );
for( pxIterator = listGET_NEXT( pxEnd );