Skip to content

Commit 8cdf1fc

Browse files
committed
Fix C90 declaration in code error
1 parent 2ecd5fa commit 8cdf1fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/FreeRTOS_DNS_Parser.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,8 @@
787787
#if ( ipconfigDNS_USE_CALLBACKS == 1 )
788788
if( pxNewAddress != NULL )
789789
{
790+
BaseType_t xCallbackResult;
791+
790792
if( *( ppxAddressInfo ) == NULL )
791793
{
792794
/* For the first address found. */
@@ -800,8 +802,6 @@
800802

801803
pxSet->ppxLastAddress = &( pxNewAddress->ai_next );
802804

803-
BaseType_t xCallbackResult;
804-
805805
xCallbackResult = xDNSDoCallback( pxSet, ( ppxAddressInfo != NULL ) ? *( ppxAddressInfo ) : NULL );
806806

807807
/* See if any asynchronous call was made to FreeRTOS_gethostbyname_a() */

0 commit comments

Comments
 (0)