diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-29 12:12:39 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-29 12:12:39 +0000 |
commit | 0893220b2a4507fc2619b625ecb0d6241ef5cd6f (patch) | |
tree | 1f81a1c1fac15dc8f3cd86aef65cbcf261f01a97 /cpukit/libmisc/shell/cmds.c | |
parent | Whitespace removal. (diff) | |
download | rtems-0893220b2a4507fc2619b625ecb0d6241ef5cd6f.tar.bz2 |
Whitespace removal.
Diffstat (limited to 'cpukit/libmisc/shell/cmds.c')
-rw-r--r-- | cpukit/libmisc/shell/cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libmisc/shell/cmds.c b/cpukit/libmisc/shell/cmds.c index 79bc8c5835..e8d6c581df 100644 --- a/cpukit/libmisc/shell/cmds.c +++ b/cpukit/libmisc/shell/cmds.c @@ -53,7 +53,7 @@ static bool rtems_shell_register_command(const rtems_monitor_command_entry_t *e, if (strcmp("exit", e->command) != 0) { rtems_shell_cmd_t *shell_cmd = (rtems_shell_cmd_t *) malloc(sizeof(rtems_shell_cmd_t)); - + if (shell_cmd != NULL) { shell_cmd->name = e->command; shell_cmd->topic = "monitor"; @@ -61,7 +61,7 @@ static bool rtems_shell_register_command(const rtems_monitor_command_entry_t *e, shell_cmd->command = rtems_shell_main_monitor; shell_cmd->alias = NULL; shell_cmd->next = NULL; - + if (rtems_shell_add_cmd_struct(shell_cmd) == NULL) { free(shell_cmd); } |