summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/login_prompt.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-10 14:55:43 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-10 14:55:43 +0000
commit6d8720c48161709d81fc890643308c214f6f8dae (patch)
tree00f4ee0560e48363932e967ca6b52baf0f82e737 /cpukit/libmisc/shell/login_prompt.c
parent2009-05-10 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-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/login_prompt.c')
-rw-r--r--cpukit/libmisc/shell/login_prompt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libmisc/shell/login_prompt.c b/cpukit/libmisc/shell/login_prompt.c
index 5701a579c2..0e754f7120 100644
--- a/cpukit/libmisc/shell/login_prompt.c
+++ b/cpukit/libmisc/shell/login_prompt.c
@@ -167,8 +167,8 @@ bool rtems_shell_login_prompt(
if (tcgetattr( fd_in, &termios_previous) == 0) {
struct termios termios_new = termios_previous;
- termios_new.c_lflag &= ~ECHO;
- termios_new.c_lflag &= ~ICANON;
+ termios_new.c_lflag &= (unsigned char) ~ECHO;
+ termios_new.c_lflag &= (unsigned char) ~ICANON;
termios_new.c_cc [VTIME] = 255;
termios_new.c_cc [VMIN] = 0;