diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-09-22 13:14:26 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-09-22 13:14:26 +0000 |
commit | c6d35fa59f75ace288116fd2fb800134ef95741e (patch) | |
tree | 47c2783ec1c1e930da10159adf82e52b31142147 /cpukit/libmisc/shell/cmds.c | |
parent | 2003-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-c6d35fa59f75ace288116fd2fb800134ef95741e.tar.bz2 |
2003-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* monitor/monitor.h:
Add rtems_monitor_commands[] (Illegally applied by shell/).
Remove ifdef(__mips64) (Make broken code visible again).
* monitor/mon-command.c: Add several ifndef RTEMS_UNIX to avoid
warnings.
* monitor/mon-monitor.c: Remove RTEMS_CPU_HAS_16_BIT_ADDRESSES (Make
broken code visible again).
* shell/cmds.c: Remove local decls of rtems_monitor_commands[].
Diffstat (limited to 'cpukit/libmisc/shell/cmds.c')
-rw-r--r-- | cpukit/libmisc/shell/cmds.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cpukit/libmisc/shell/cmds.c b/cpukit/libmisc/shell/cmds.c index 5cc630ef24..2c462007df 100644 --- a/cpukit/libmisc/shell/cmds.c +++ b/cpukit/libmisc/shell/cmds.c @@ -469,18 +469,16 @@ int main_chmod(int argc,char *argv[]) *-----------------------------------------------------------*/ int main_monitor(int argc,char * argv[]) { rtems_monitor_command_entry_t *command; - extern rtems_monitor_command_entry_t rtems_monitor_commands[]; rtems_task_ident(RTEMS_SELF,0,&rtems_monitor_task_id); rtems_monitor_node = rtems_get_node(rtems_monitor_task_id); rtems_monitor_default_node = rtems_monitor_node; if ((command=rtems_monitor_command_lookup(rtems_monitor_commands,argc,argv))) - command->command_function(argc, argv, command->command_arg, 0); + command->command_function(argc, argv, &command->command_arg, 0); return 0; } /*-----------------------------------------------------------*/ void register_cmds(void) { rtems_monitor_command_entry_t *command; - extern rtems_monitor_command_entry_t rtems_monitor_commands[]; /* monitor topic */ command=rtems_monitor_commands; while (command) { |