summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-03-02 13:51:46 -0500
committerJoel Sherrill <joel@rtems.org>2021-03-08 14:04:10 -0600
commitfbab8325a9e15add0efd70dbb2f3e5537f615bf5 (patch)
tree7ff923bd08ef3f2bf9b51a485a98251f253d60f9
parentpwdgrp.c: Fix Unchecked return value from library (CID #1255518) (diff)
downloadrtems-fbab8325a9e15add0efd70dbb2f3e5537f615bf5.tar.bz2
main_help.c: Unchecked return value from library (CID #1437650)
CID 1437650: Unchecked return value from library in rtems_shell_help(). Closes #4291
-rw-r--r--cpukit/libmisc/shell/main_help.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libmisc/shell/main_help.c b/cpukit/libmisc/shell/main_help.c
index 611f2e0a62..9f59e9df4b 100644
--- a/cpukit/libmisc/shell/main_help.c
+++ b/cpukit/libmisc/shell/main_help.c
@@ -119,7 +119,8 @@ static int rtems_shell_help(
rtems_shell_cmd_t *shell_cmd;
if (lines && (line > lines)) {
- printf("Press any key to continue...");getchar();
+ printf("Press any key to continue...");
+ (void) getchar(); /* we only want to know a character was pressed */
printf("\n");
line = 0;
}