Skip to content

Commit

Permalink
Fix spelling and unit-test
Browse files Browse the repository at this point in the history
  • Loading branch information
ActoryOu committed Oct 31, 2024
1 parent 995af46 commit bc6f081
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/.cSpellWords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ BLXNS
bmcr
BMSR
BPDG
BPIALL
brgintclr
brginten
brgintstat
Expand Down
11 changes: 2 additions & 9 deletions source/FreeRTOS_DNS_Parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@

#if ( ipconfigUSE_DNS != 0 )

#if ( ipconfigIS_ENABLED( ipconfigUSE_DNS_CACHE ) || \
ipconfigIS_ENABLED( ipconfigDNS_USE_CALLBACKS ) || \
ipconfigIS_ENABLED( ipconfigUSE_MDNS ) || \
ipconfigIS_ENABLED( ipconfigUSE_LLMNR ) )
#if ( ( ipconfigUSE_DNS_CACHE != 0 ) || ( ipconfigDNS_USE_CALLBACKS != 0 ) || ( ipconfigUSE_MDNS != 0 ) || ( ipconfigUSE_LLMNR != 0 ) )

/**
* @brief Read the Name field out of a DNS response packet.
Expand Down Expand Up @@ -360,11 +357,7 @@
}
#endif

#if ( ipconfigIS_ENABLED( ipconfigUSE_DNS_CACHE ) || \
ipconfigIS_ENABLED( ipconfigDNS_USE_CALLBACKS ) || \
ipconfigIS_ENABLED( ipconfigUSE_MDNS ) || \
ipconfigIS_ENABLED( ipconfigUSE_LLMNR ) )

#if ( ( ipconfigUSE_DNS_CACHE != 0 ) || ( ipconfigDNS_USE_CALLBACKS != 0 ) || ( ipconfigUSE_MDNS != 0 ) || ( ipconfigUSE_LLMNR != 0 ) )
if( x == 0U )
{
uxResult = DNS_ReadNameField( &xSet,
Expand Down
5 changes: 1 addition & 4 deletions source/include/FreeRTOS_DNS_Globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,7 @@
char * pcRequestedName; /**< A pointer to the full name of the host being looked up. */
#endif

#if ( ipconfigIS_ENABLED( ipconfigUSE_DNS_CACHE ) || \
ipconfigIS_ENABLED( ipconfigDNS_USE_CALLBACKS ) || \
ipconfigIS_ENABLED( ipconfigUSE_MDNS ) || \
ipconfigIS_ENABLED( ipconfigUSE_LLMNR ) )
#if ( ( ipconfigUSE_DNS_CACHE != 0 ) || ( ipconfigDNS_USE_CALLBACKS != 0 ) || ( ipconfigUSE_MDNS != 0 ) || ( ipconfigUSE_LLMNR != 0 ) )
BaseType_t xDoStore; /**< Becomes true when a DNS reply was requested by this device,
* i.e. it has a matching request ID. */
char pcName[ ipconfigDNS_CACHE_NAME_LENGTH ]; /**< A copy of the name that is mentioned in the questions. */
Expand Down

0 comments on commit bc6f081

Please sign in to comment.