diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 26dfed8584..edfd37bfcf 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2010-01-20 Joel Sherrill + + Coverity Id 3 + * libmisc/shell/shell.c: Remove dead code path and fix warning. + 2010-01-20 Joel Sherrill * libmisc/shell/hexdump-parse.c: Fix uninitialized warning. 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++; }