summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/shellconfig.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-18 10:03:24 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-20 10:30:25 +0100
commit7840b66f74005f3d6ddd590b9ab40945e1c1f827 (patch)
treeb97b898e4f40b1934a4a3b4518f08115aa28ba07 /cpukit/libmisc/shell/shellconfig.h
parentshell: Simplify rtems_shell_add_cmd_struct() (diff)
downloadrtems-7840b66f74005f3d6ddd590b9ab40945e1c1f827.tar.bz2
shell: Add initial commands and aliases only once
Make tables read-only.
Diffstat (limited to 'cpukit/libmisc/shell/shellconfig.h')
-rw-r--r--cpukit/libmisc/shell/shellconfig.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libmisc/shell/shellconfig.h b/cpukit/libmisc/shell/shellconfig.h
index d9d6078272..c5fced3513 100644
--- a/cpukit/libmisc/shell/shellconfig.h
+++ b/cpukit/libmisc/shell/shellconfig.h
@@ -90,7 +90,7 @@ extern rtems_shell_cmd_t rtems_shell_MALLOC_INFO_Command;
extern rtems_shell_cmd_t rtems_shell_PING_Command;
#endif
-extern rtems_shell_cmd_t *rtems_shell_Initial_commands[];
+extern rtems_shell_cmd_t * const rtems_shell_Initial_commands[];
/*
* Extern for alias commands
@@ -99,7 +99,7 @@ extern rtems_shell_alias_t rtems_shell_DIR_Alias;
extern rtems_shell_alias_t rtems_shell_CD_Alias;
extern rtems_shell_alias_t rtems_shell_EXIT_Alias;
-extern rtems_shell_alias_t *rtems_shell_Initial_aliases[];
+extern rtems_shell_alias_t * const rtems_shell_Initial_aliases[];
/*
* If we are configured to alias a command, then make sure the underlying
@@ -124,7 +124,7 @@ extern rtems_shell_alias_t *rtems_shell_Initial_aliases[];
#endif
#if defined(CONFIGURE_SHELL_COMMANDS_INIT)
- rtems_shell_alias_t *rtems_shell_Initial_aliases[] = {
+ rtems_shell_alias_t * const rtems_shell_Initial_aliases[] = {
#if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
!defined(CONFIGURE_SHELL_NO_COMMAND_DIR)) || \
defined(CONFIGURE_SHELL_COMMAND_DIR)
@@ -150,7 +150,7 @@ extern rtems_shell_alias_t *rtems_shell_Initial_aliases[];
NULL
};
- rtems_shell_cmd_t *rtems_shell_Initial_commands[] = {
+ rtems_shell_cmd_t * const rtems_shell_Initial_commands[] = {
/*
* General comamnds that should be present
*/