diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-01-20 15:20:29 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-01-20 15:20:29 +0000 |
commit | 8c161f958f0c5a9d4b607ea4e2d894f97753f855 (patch) | |
tree | 3f7873c035d38ce4f4369129206dddf368a61159 /cpukit/libmisc/shell/shell.c | |
parent | 2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-8c161f958f0c5a9d4b607ea4e2d894f97753f855.tar.bz2 |
2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 3
* libmisc/shell/shell.c: Remove dead code path and fix warning.
Diffstat (limited to 'cpukit/libmisc/shell/shell.c')
-rw-r--r-- | cpukit/libmisc/shell/shell.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cpukit/libmisc/shell/shell.c b/cpukit/libmisc/shell/shell.c index b17098098d..6e2096433a 100644 --- a/cpukit/libmisc/shell/shell.c +++ b/cpukit/libmisc/shell/shell.c @@ -237,10 +237,6 @@ int rtems_shell_line_editor( fprintf(out,"\r%*c", clen, ' '); fprintf(out,"\r%s%s", prompt, line); } - else { - if (output) - fputc('\x7', out); - } } break; @@ -769,7 +765,7 @@ bool rtems_shell_main_loop( /* evaluate cmd section */ c = cmds[cmd]; while (*c) { - if (!isblank(*c)) + if (!isblank((int)*c)) break; c++; } |