Skip to content

Commit

Permalink
Add const qualifier to FF_IsNameCompliant() pointer argument
Browse files Browse the repository at this point in the history
The argument is read-only.
  • Loading branch information
StefanBalt committed Apr 24, 2024
1 parent 4696e0d commit 05d44d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ff_dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -2884,9 +2884,9 @@ FF_Error_t FF_ExtendDirectory( FF_IOManager_t * pxIOManager,

/* *INDENT-OFF* */
#if ( ffconfigUNICODE_UTF16_SUPPORT != 0 )
BaseType_t FF_IsNameCompliant( FF_T_WCHAR * pcName )
BaseType_t FF_IsNameCompliant( const FF_T_WCHAR * pcName )
#else
BaseType_t FF_IsNameCompliant( char * pcName )
BaseType_t FF_IsNameCompliant( const char * pcName )
#endif
/* *INDENT-ON* */
{
Expand Down
4 changes: 2 additions & 2 deletions include/ff_dir.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ int8_t FF_PushEntry( FF_IOManager_t * pxIOManager,
* contains any legal characters only.
*/
#if ( ffconfigUNICODE_UTF16_SUPPORT != 0 )
BaseType_t FF_IsNameCompliant( FF_T_WCHAR * pcName );
BaseType_t FF_IsNameCompliant( const FF_T_WCHAR * pcName );
#else
BaseType_t FF_IsNameCompliant( char * pcName );
BaseType_t FF_IsNameCompliant( const char * pcName );
#endif

static portINLINE BaseType_t FF_isEndOfDir( const uint8_t * pucEntryBuffer )
Expand Down

0 comments on commit 05d44d7

Please sign in to comment.