mirror of
https://github.com/FreeRTOS/Lab-Project-FreeRTOS-FAT.git
synced 2025-10-18 00:12:17 +08:00
Fix warning in ff_stdio.c (#11)
* Fix warning in ff_stdio.c This commit fixes warning: warning: no previous prototype for 'prvABSPath' [-Wmissing-prototypes] * Prototypes moved to a top of file
This commit is contained in:
40
ff_stdio.c
40
ff_stdio.c
@@ -55,6 +55,26 @@ in a call to ff_truncate(). */
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* Add the CWD to the beginning of a relative path, and copy the resultant
|
||||
* absolute path into a thread local non const buffer.
|
||||
*/
|
||||
/*static*/ const char *prvABSPath( const char *pcPath );
|
||||
|
||||
/*
|
||||
* Translate a +FAT error to a value compatible with errno.h
|
||||
* If the value represents an error, it is negative
|
||||
* The return value of this function will always be positive
|
||||
*/
|
||||
int prvFFErrorToErrno( FF_Error_t xError );
|
||||
|
||||
/*
|
||||
* Generate a time stamp for the file.
|
||||
*/
|
||||
#if( ffconfigTIME_SUPPORT == 1 )
|
||||
static uint32_t prvFileTime( FF_SystemTime_t *pxTime );
|
||||
#endif
|
||||
|
||||
#if( ffconfigHAS_CWD == 1 )
|
||||
|
||||
/* FreeRTOS+FAT requires two thread local storage pointers. One for errno
|
||||
@@ -71,12 +91,6 @@ in a call to ff_truncate(). */
|
||||
char pcFileName[ ffconfigMAX_FILENAME ]; /* The created absolute path. */
|
||||
} WorkingDirectory_t;
|
||||
|
||||
/*
|
||||
* Add the CWD to the beginning of a relative path, and copy the resultant
|
||||
* absolute path into a thread local non const buffer.
|
||||
*/
|
||||
/*static*/ const char *prvABSPath( const char *pcPath );
|
||||
|
||||
/*
|
||||
* Lookup the CWD of the current task.
|
||||
*/
|
||||
@@ -114,20 +128,6 @@ in a call to ff_truncate(). */
|
||||
static int ff_deltree_recurse( char *pcPath );
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Translate a +FAT error to a value compatible with errno.h
|
||||
* If the value represents an error, it is negative
|
||||
* The return value of this function will always be positive
|
||||
*/
|
||||
int prvFFErrorToErrno( FF_Error_t xError );
|
||||
|
||||
/*
|
||||
* Generate a time stamp for the file.
|
||||
*/
|
||||
#if( ffconfigTIME_SUPPORT == 1 )
|
||||
static uint32_t prvFileTime( FF_SystemTime_t *pxTime );
|
||||
#endif
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
FF_FILE *ff_fopen( const char *pcFile, const char *pcMode )
|
||||
|
Reference in New Issue
Block a user