]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_SmartFusion2_M2S050_SoftConsole/RTOSDemo/Full-Demo/File-releated-CLI-commands.c
Update FreeRTOS+ more demos that use FreeRTOS+CLI to remove casting to int8_t * from...
[freertos] / FreeRTOS / Demo / CORTEX_SmartFusion2_M2S050_SoftConsole / RTOSDemo / Full-Demo / File-releated-CLI-commands.c
index 13d5e1bdbf48f5997e7308f9ee3a5cbf1a634e90..a39dedf7e0478dda356a4cf19009ce2bf75a2b90 100644 (file)
@@ -238,7 +238,7 @@ size_t xColumns = 50U;
                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
@@ -400,7 +400,7 @@ unsigned char ucReturned;
        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
@@ -436,12 +436,12 @@ long lSourceLength, lDestinationLength = 0;
        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
@@ -518,7 +518,7 @@ portBASE_TYPE xReturn = pdPASS;
                /* 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
@@ -533,7 +533,7 @@ portBASE_TYPE xReturn = pdPASS;
 \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