aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-05-29 10:39:06 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-05-29 10:39:06 +0200
commit4b7db4f2ca232c630e334fa56b1eb89848d5fcc5 (patch)
tree55608587f33fc1d6f6a8e40dfdf7fea66c750d7a /shell
parent171932d7ca62dbb0e0b84a0919e1f3a8a68f03f2 (diff)
downloadbusybox-w32-4b7db4f2ca232c630e334fa56b1eb89848d5fcc5.tar.gz
busybox-w32-4b7db4f2ca232c630e334fa56b1eb89848d5fcc5.tar.bz2
busybox-w32-4b7db4f2ca232c630e334fa56b1eb89848d5fcc5.zip
read_key: drop optimization where we read 3 bytes at once
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/hush.c b/shell/hush.c
index add40eb5f..5fa693b0a 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -1006,7 +1006,7 @@ static void restore_G_args(save_arg_t *sv, char **argv)
1006 * Commands run in command substitution ("`cmd`") 1006 * Commands run in command substitution ("`cmd`")
1007 * have SIGTTIN, SIGTTOU, SIGTSTP set to SIG_IGN. 1007 * have SIGTTIN, SIGTTOU, SIGTSTP set to SIG_IGN.
1008 * 1008 *
1009 * Ordinary commands have signals set to SIG_IGN/DFL set as inherited 1009 * Ordinary commands have signals set to SIG_IGN/DFL as inherited
1010 * by the shell from its parent. 1010 * by the shell from its parent.
1011 * 1011 *
1012 * Siganls which differ from SIG_DFL action 1012 * 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)
1285 if (strncmp(cur->varstr, str, name_len) != 0) { 1285 if (strncmp(cur->varstr, str, name_len) != 0) {
1286 if (!cur->next) { 1286 if (!cur->next) {
1287 /* Bail out. Note that now cur points 1287 /* Bail out. Note that now cur points
1288 * to last var in linked list */ 1288 * to the last var in the linked list */
1289 break; 1289 break;
1290 } 1290 }
1291 cur = cur->next; 1291 cur = cur->next;