From 4b7db4f2ca232c630e334fa56b1eb89848d5fcc5 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 29 May 2009 10:39:06 +0200 Subject: read_key: drop optimization where we read 3 bytes at once Signed-off-by: Denys Vlasenko --- shell/hush.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell') diff --git a/shell/hush.c b/shell/hush.c index add40eb..5fa693b 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -1006,7 +1006,7 @@ static void restore_G_args(save_arg_t *sv, char **argv) * Commands run in command substitution ("`cmd`") * have SIGTTIN, SIGTTOU, SIGTSTP set to SIG_IGN. * - * Ordinary commands have signals set to SIG_IGN/DFL set as inherited + * Ordinary commands have signals set to SIG_IGN/DFL as inherited * by the shell from its parent. * * Siganls which differ from SIG_DFL action @@ -1285,7 +1285,7 @@ static int set_local_var(char *str, int flg_export, int flg_read_only) if (strncmp(cur->varstr, str, name_len) != 0) { if (!cur->next) { /* Bail out. Note that now cur points - * to last var in linked list */ + * to the last var in the linked list */ break; } cur = cur->next; -- cgit v1.1