diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-05-10 14:55:43 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-05-10 14:55:43 +0000 |
commit | 6d8720c48161709d81fc890643308c214f6f8dae (patch) | |
tree | 00f4ee0560e48363932e967ca6b52baf0f82e737 /cpukit/libmisc/shell/shell_script.c | |
parent | 2009-05-10 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-6d8720c48161709d81fc890643308c214f6f8dae.tar.bz2 |
2009-05-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/login_prompt.c, libmisc/shell/shell_script.c,
rtems/include/rtems/rtems/timer.h: Fix warnings.
Diffstat (limited to 'cpukit/libmisc/shell/shell_script.c')
-rw-r--r-- | cpukit/libmisc/shell/shell_script.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/cpukit/libmisc/shell/shell_script.c b/cpukit/libmisc/shell/shell_script.c index a970720879..34be6cd0ec 100644 --- a/cpukit/libmisc/shell/shell_script.c +++ b/cpukit/libmisc/shell/shell_script.c @@ -4,7 +4,7 @@ * Pseudo-code from Chris Johns, implemented and debugged * by Joel Sherrill. * - * COPYRIGHT (c) 1989-2008. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -100,6 +100,11 @@ static int findOnPATH( int rtems_shell_main_joel( int argc, char **argv +); + +int rtems_shell_main_joel( + int argc, + char **argv ) { int option; @@ -120,10 +125,11 @@ int rtems_shell_main_joel( outputFile = getopt_reent.optarg; break; case 'p': - taskPriority = rtems_shell_str2int(getopt_reent.optarg); + taskPriority = + (rtems_task_priority) rtems_shell_str2int(getopt_reent.optarg); break; case 's': - stackSize = rtems_shell_str2int(getopt_reent.optarg); + stackSize = (uint32_t) rtems_shell_str2int(getopt_reent.optarg); break; case 't': taskName = getopt_reent.optarg; |