Skip to content

Commit 958e3d4

Browse files
committed
fix misra issues
1 parent de51dc4 commit 958e3d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/FreeRTOS_IP_Utils.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ static void prvChecksumProtocolCalculate( BaseType_t xOutgoingPacket,
127127
static void prvChecksumProtocolSetChecksum( BaseType_t xOutgoingPacket,
128128
const uint8_t * pucEthernetBuffer,
129129
size_t uxBufferLength,
130-
struct xPacketSummary * pxSet );
130+
const struct xPacketSummary * pxSet );
131131

132-
static void prvSetChecksumInPacket( struct xPacketSummary * pxSet,
132+
static void prvSetChecksumInPacket( const struct xPacketSummary * pxSet,
133133
uint16_t usChecksum );
134134

135135
static uint16_t prvGetChecksumFromPacket( const struct xPacketSummary * pxSet );
@@ -142,7 +142,7 @@ static uint16_t prvGetChecksumFromPacket( const struct xPacketSummary * pxSet );
142142
*
143143
* @param usChecksum: Checksum value to be set.
144144
*/
145-
static void prvSetChecksumInPacket( struct xPacketSummary * pxSet,
145+
static void prvSetChecksumInPacket( const struct xPacketSummary * pxSet,
146146
uint16_t usChecksum )
147147
{
148148
if( pxSet->ucProtocol == ( uint8_t ) ipPROTOCOL_UDP )
@@ -620,7 +620,7 @@ static void prvChecksumProtocolCalculate( BaseType_t xOutgoingPacket,
620620
static void prvChecksumProtocolSetChecksum( BaseType_t xOutgoingPacket,
621621
const uint8_t * pucEthernetBuffer,
622622
size_t uxBufferLength,
623-
struct xPacketSummary * pxSet )
623+
const struct xPacketSummary * pxSet )
624624
{
625625
if( xOutgoingPacket != pdFALSE )
626626
{

0 commit comments

Comments
 (0)