Skip to content

Commit

Permalink
Remove forced formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Soren Ptak committed Jul 20, 2023
1 parent 8ec74c7 commit fd641e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions source/FreeRTOS_DNS_Callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,20 @@

vTaskSuspendAll();
{
for( pxIterator = ( const ListItem_t * ) listGET_NEXT( xEnd );
for( pxIterator = ( const ListItem_t * ) listGET_NEXT( xEnd );
pxIterator != ( const ListItem_t * ) xEnd;
pxIterator = ( const ListItem_t * ) listGET_NEXT( pxIterator ) )
{
BaseType_t xMatching;
DNSCallback_t * pxCallback = ( ( DNSCallback_t * ) listGET_LIST_ITEM_OWNER( pxIterator ) );
#if ( ipconfigUSE_MDNS == 1 )
/* mDNS port 5353. */
if ( pxSet->usPortNumber == FreeRTOS_htons( ipMDNS_PORT ) )
if( pxSet->usPortNumber == FreeRTOS_htons( ipMDNS_PORT ) )
{
/* In mDNS, the query ID field is ignored and the
/* In mDNS, the query ID field is ignored and the
* hostname will be compared with outstanding requests. */

xMatching = ( strcasecmp( pxCallback->pcName, pxSet->pcName ) == 0 ) ? pdTRUE : pdFALSE;



}
else
#endif /* if ( ipconfigUSE_MDNS == 1 ) */
Expand Down
4 changes: 2 additions & 2 deletions source/include/FreeRTOS_DNS.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ typedef enum xIPPreference
{
xPreferenceNone,
xPreferenceIPv4,
#if ( ipconfigUSE_IPv6 != 0 )
#if ( ipconfigUSE_IPv6 != 0 )
xPreferenceIPv6,
#endif
} IPPreference_t;

/** @brief This variable determines he choice of DNS server, either IPv4 or IPv6. */
/** @brief This variable determines he choice of DNS server, either IPv4 or IPv6. */
extern IPPreference_t xDNS_IP_Preference;

#if ( ipconfigUSE_NBNS != 0 )
Expand Down

0 comments on commit fd641e0

Please sign in to comment.