aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-10-29 03:45:26 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-10-29 03:45:26 +0100
commit1f6d2307bafd1e55addac5fc28a71f59fc3bd5ba (patch)
tree31259bf3c25f42c853c91a68de23db98b9e73c40 /libbb
parent4dc08262cf91f8e736e11495eb1931fee24bda62 (diff)
downloadbusybox-1f6d2307bafd1e55addac5fc28a71f59fc3bd5ba.tar.gz
lineedit: REALLY fix compile error now
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r--libbb/lineedit.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 42185dc56..0f7ab8c94 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -1662,6 +1662,9 @@ static int lineedit_read_key(char *read_key_buffer)
pfd.fd = STDIN_FILENO;
pfd.events = POLLIN;
do {
+#if ENABLE_FEATURE_EDITING_ASK_TERMINAL || ENABLE_FEATURE_ASSUME_UNICODE
+ poll_again:
+#endif
if (read_key_buffer[0] == 0) {
/* Wait for input. Can't just call read_key,
* it returns at once if stdin
@@ -1686,7 +1689,7 @@ static int lineedit_read_key(char *read_key_buffer)
}
}
}
- continue;
+ goto poll_again;
}
#endif
@@ -1700,7 +1703,7 @@ static int lineedit_read_key(char *read_key_buffer)
unicode_buf[unicode_idx] = '\0';
if (mbstowcs(&wc, unicode_buf, 1) != 1 && unicode_idx < MB_CUR_MAX) {
delay = 50;
- continue;
+ goto poll_again;
}
ic = wc;
}