aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-10-29 03:41:38 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-10-29 03:41:38 +0100
commit4dc08262cf91f8e736e11495eb1931fee24bda62 (patch)
treec2e7f5ab8b4fa4a842a9a727fe80544a7d2df571
parent00f0ef4a0cd58582a15afcc77f4601013ce0861c (diff)
downloadbusybox-w32-4dc08262cf91f8e736e11495eb1931fee24bda62.tar.gz
busybox-w32-4dc08262cf91f8e736e11495eb1931fee24bda62.tar.bz2
busybox-w32-4dc08262cf91f8e736e11495eb1931fee24bda62.zip
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 9c6454daf..42185dc56 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -1662,7 +1662,6 @@ static int lineedit_read_key(char *read_key_buffer)
1662 pfd.fd = STDIN_FILENO; 1662 pfd.fd = STDIN_FILENO;
1663 pfd.events = POLLIN; 1663 pfd.events = POLLIN;
1664 do { 1664 do {
1665 poll_again:
1666 if (read_key_buffer[0] == 0) { 1665 if (read_key_buffer[0] == 0) {
1667 /* Wait for input. Can't just call read_key, 1666 /* Wait for input. Can't just call read_key,
1668 * it returns at once if stdin 1667 * it returns at once if stdin
@@ -1687,7 +1686,7 @@ static int lineedit_read_key(char *read_key_buffer)
1687 } 1686 }
1688 } 1687 }
1689 } 1688 }
1690 goto poll_again; 1689 continue;
1691 } 1690 }
1692#endif 1691#endif
1693 1692
@@ -1701,7 +1700,7 @@ static int lineedit_read_key(char *read_key_buffer)
1701 unicode_buf[unicode_idx] = '\0'; 1700 unicode_buf[unicode_idx] = '\0';
1702 if (mbstowcs(&wc, unicode_buf, 1) != 1 && unicode_idx < MB_CUR_MAX) { 1701 if (mbstowcs(&wc, unicode_buf, 1) != 1 && unicode_idx < MB_CUR_MAX) {
1703 delay = 50; 1702 delay = 50;
1704 goto poll_again; 1703 continue;
1705 } 1704 }
1706 ic = wc; 1705 ic = wc;
1707 } 1706 }