From 37d751510ab37cc36fc0ab2dcf50d2aa08ae6d08 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 13 Dec 2016 08:47:45 +0000 Subject: Fixed bug #797. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9956 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/various/shell/shell_cmd.c | 2 +- os/various/shell/shell_cmd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'os') diff --git a/os/various/shell/shell_cmd.c b/os/various/shell/shell_cmd.c index 724d83351..fd28aa89a 100644 --- a/os/various/shell/shell_cmd.c +++ b/os/various/shell/shell_cmd.c @@ -197,7 +197,7 @@ static void cmd_test(BaseSequentialStream *chp, int argc, char *argv[]) { /** * @brief Array of the default commands. */ -ShellCommand shell_local_commands[] = { +const ShellCommand shell_local_commands[] = { #if (SHELL_CMD_EXIT_ENABLED == TRUE) && !defined(_CHIBIOS_NIL_) {"exit", cmd_exit}, #endif diff --git a/os/various/shell/shell_cmd.h b/os/various/shell/shell_cmd.h index 4eac1a122..2fd454d7d 100644 --- a/os/various/shell/shell_cmd.h +++ b/os/various/shell/shell_cmd.h @@ -94,7 +94,7 @@ /*===========================================================================*/ #if !defined(__DOXYGEN__) -extern ShellCommand shell_local_commands[]; +extern const ShellCommand shell_local_commands[]; #endif #ifdef __cplusplus -- cgit v1.2.3