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 5909fd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ff_dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -2886,7 +2886,7 @@ FF_Error_t FF_ExtendDirectory( FF_IOManager_t * pxIOManager,
#if ( ffconfigUNICODE_UTF16_SUPPORT != 0 )
BaseType_t FF_IsNameCompliant( 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 5909fd5

Please sign in to comment.