]> git.sur5r.net Git - freertos/commitdiff
Fix a few compiler warnings in utils when compiled with GCC.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 2 Aug 2011 09:45:12 +0000 (09:45 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 2 Aug 2011 09:45:12 +0000 (09:45 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1534 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/Common/Utils/CommandInterpreter.c

index deba1296128faf716caa8706fa1a1a0b5ad6e391..9001d549e738fdee097eb9ae5ba2665874c01e2f 100644 (file)
     licensing and training services.\r
 */\r
 \r
+/* Standard includes. */\r
+#include <string.h>\r
+\r
+/* FreeRTOS includes. */\r
 #include "FreeRTOS.h"\r
 #include "task.h"\r
+\r
+/* Utils includes. */\r
 #include "CommandInterpreter.h"\r
 \r
 typedef struct xCOMMAND_INPUT_LIST\r
@@ -71,8 +77,8 @@ static const signed char *prvHelpCommand( void );
 of the list of registered commands. */\r
 static const xCommandLineInput xHelpCommand = \r
 {\r
-       "help",\r
-       "help: Lists all the registered commands\r\n",\r
+       ( const signed char * const ) "help",\r
+       ( const signed char * const ) "help: Lists all the registered commands\r\n",\r
        prvHelpCommand\r
 };\r
 \r
@@ -163,7 +169,7 @@ signed const char *pcReturn = NULL;
        }\r
        else\r
        {\r
-               pcReturn = "Command not recognised.  Available commands are listed below.\r\n\r\n";\r
+               pcReturn = ( const signed char * const ) "Command not recognised.  Available commands are listed below.\r\n\r\n";\r
 \r
                /* Print out the help string. */\r
                pxCommand = &xRegisteredCommands;\r