summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-10-29 02:41:38 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2009-10-29 02:41:38 (GMT)
commit4dc08262cf91f8e736e11495eb1931fee24bda62 (patch)
treec2e7f5ab8b4fa4a842a9a727fe80544a7d2df571
parent00f0ef4a0cd58582a15afcc77f4601013ce0861c (diff)
downloadbusybox-4dc08262cf91f8e736e11495eb1931fee24bda62.tar.gz
busybox-4dc08262cf91f8e736e11495eb1931fee24bda62.tar.bz2
lineedit: compile fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--libbb/lineedit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 9c6454d..42185dc 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -1662,7 +1662,6 @@ static int lineedit_read_key(char *read_key_buffer)
pfd.fd = STDIN_FILENO;
pfd.events = POLLIN;
do {
- poll_again:
if (read_key_buffer[0] == 0) {
/* Wait for input. Can't just call read_key,
* it returns at once if stdin
@@ -1687,7 +1686,7 @@ static int lineedit_read_key(char *read_key_buffer)
}
}
}
- goto poll_again;
+ continue;
}
#endif
@@ -1701,7 +1700,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;
- goto poll_again;
+ continue;
}
ic = wc;
}