Skip to content

Commit f407ddd

Browse files
committed
Fix ti compiller errors
1 parent 60cfc13 commit f407ddd

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

source/FreeRTOS_DNS_Parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
uint16_t x;
263263
BaseType_t xReturn = pdTRUE;
264264
uint32_t ulIPAddress = 0U;
265-
BaseType_t xDNSHookReturn;
265+
BaseType_t xDNSHookReturn = 0U;
266266

267267
( void ) memset( &( xSet ), 0, sizeof( xSet ) );
268268
xSet.usPortNumber = usPort;

source/FreeRTOS_IPv4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282

8383
/* Map the buffer onto a IP-Packet struct to easily access the
8484
* fields of the IP packet. */
85-
const IPPacket_t * const pxIPPacket = ( ( const IPPacket_t * const ) pvEthernetBuffer );
85+
const IPPacket_t * const pxIPPacket = ( ( const IPPacket_t *) pvEthernetBuffer );
8686

8787
DEBUG_DECLARE_TRACE_VARIABLE( BaseType_t, xLocation, 0 );
8888

source/FreeRTOS_IPv6.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ const struct xIPv6_Address FreeRTOS_in6addr_loopback = { { 0U, 0U, 0U, 0U, 0U, 0
9999
size_t uxMinimumLength;
100100
size_t uxExtHeaderLength = 0;
101101
const IPExtHeader_IPv6_t * pxExtHeader = NULL;
102-
const uint8_t * const pucEthernetBuffer = ( const uint8_t * const ) pvEthernetBuffer;
102+
const uint8_t * const pucEthernetBuffer = ( const uint8_t *) pvEthernetBuffer;
103103

104104
/* Map the buffer onto a IPv6-Packet struct to easily access the
105105
* fields of the IPv6 packet. */
106-
const IPPacket_IPv6_t * const pxIPv6Packet = ( const IPPacket_IPv6_t * const ) pucEthernetBuffer;
106+
const IPPacket_IPv6_t * const pxIPv6Packet = ( const IPPacket_IPv6_t *) pucEthernetBuffer;
107107

108108
DEBUG_DECLARE_TRACE_VARIABLE( BaseType_t, xLocation, 0 );
109109

source/FreeRTOS_RA.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,14 @@
329329

330330
case ndICMP_MTU_OPTION: /* 5 */
331331
{
332+
#if ipconfigHAS_PRINTF == 1
332333
uint32_t ulMTU;
333334
( void ) ulMTU;
334335

335336
/* ulChar2u32 returns host-endian numbers. */
336337
ulMTU = ulChar2u32( &( pucBytes[ uxIndex + 4U ] ) );
337338
FreeRTOS_printf( ( "RA: MTU = %u\n", ( unsigned int ) ulMTU ) );
339+
#endif /* ipconfigHAS_PRINTF == 1 */
338340
}
339341
break;
340342

0 commit comments

Comments
 (0)