configASSERT( pcParameter );\r
\r
/* Attempt to open the requested file. */\r
- pxFile = f_open( ( const char * ) pcParameter, "r" );\r
+ pxFile = f_open( pcParameter, "r" );\r
}\r
\r
if( pxFile != NULL )\r
configASSERT( pcParameter );\r
\r
/* Attempt to delete the file. */\r
- ucReturned = f_delete( ( const char * ) pcParameter );\r
+ ucReturned = f_delete( pcParameter );\r
\r
if( ucReturned == F_NO_ERROR )\r
{\r
configASSERT( pcDestinationFile );\r
\r
/* Obtain the name of the source file. */\r
- pcSourceFile = FreeRTOS_CLIGetParameter\r
- (\r
- pcCommandString, /* The command string itself. */\r
- 1, /* Return the first parameter. */\r
- &xParameterStringLength /* Store the parameter string length. */\r
- );\r
+ pcSourceFile = ( char * ) FreeRTOS_CLIGetParameter\r
+ (\r
+ pcCommandString, /* The command string itself. */\r
+ 1, /* Return the first parameter. */\r
+ &xParameterStringLength /* Store the parameter string length. */\r
+ );\r
\r
/* Sanity check something was returned. */\r
configASSERT( pcSourceFile );\r
/* Open the source file, seek past the data that has already been\r
read from the file, read the next block of data, then close the\r
file again so the destination file can be opened. */\r
- pxFile = f_open( ( const char * ) pcSourceFile, "r" );\r
+ pxFile = f_open( pcSourceFile, "r" );\r
if( pxFile != NULL )\r
{\r
f_seek( pxFile, lBytesRead, F_SEEK_SET );\r
\r
/* Open the destination file and write the block of data to the end of\r
the file. */\r
- pxFile = f_open( ( const char * ) pcDestinationFile, "a" );\r
+ pxFile = f_open( pcDestinationFile, "a" );\r
if( pxFile != NULL )\r
{\r
f_write( pxWriteBuffer, lBytesToRead, 1, pxFile );\r