diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-29 03:45:26 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-29 03:45:26 +0100 |
commit | 1f6d2307bafd1e55addac5fc28a71f59fc3bd5ba (patch) | |
tree | 31259bf3c25f42c853c91a68de23db98b9e73c40 /libbb/lineedit.c | |
parent | 4dc08262cf91f8e736e11495eb1931fee24bda62 (diff) | |
download | busybox-w32-1f6d2307bafd1e55addac5fc28a71f59fc3bd5ba.tar.gz busybox-w32-1f6d2307bafd1e55addac5fc28a71f59fc3bd5ba.tar.bz2 busybox-w32-1f6d2307bafd1e55addac5fc28a71f59fc3bd5ba.zip |
lineedit: REALLY fix compile error now
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 7 |
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) | |||
1662 | pfd.fd = STDIN_FILENO; | 1662 | pfd.fd = STDIN_FILENO; |
1663 | pfd.events = POLLIN; | 1663 | pfd.events = POLLIN; |
1664 | do { | 1664 | do { |
1665 | #if ENABLE_FEATURE_EDITING_ASK_TERMINAL || ENABLE_FEATURE_ASSUME_UNICODE | ||
1666 | poll_again: | ||
1667 | #endif | ||
1665 | if (read_key_buffer[0] == 0) { | 1668 | if (read_key_buffer[0] == 0) { |
1666 | /* Wait for input. Can't just call read_key, | 1669 | /* Wait for input. Can't just call read_key, |
1667 | * it returns at once if stdin | 1670 | * it returns at once if stdin |
@@ -1686,7 +1689,7 @@ static int lineedit_read_key(char *read_key_buffer) | |||
1686 | } | 1689 | } |
1687 | } | 1690 | } |
1688 | } | 1691 | } |
1689 | continue; | 1692 | goto poll_again; |
1690 | } | 1693 | } |
1691 | #endif | 1694 | #endif |
1692 | 1695 | ||
@@ -1700,7 +1703,7 @@ static int lineedit_read_key(char *read_key_buffer) | |||
1700 | unicode_buf[unicode_idx] = '\0'; | 1703 | unicode_buf[unicode_idx] = '\0'; |
1701 | if (mbstowcs(&wc, unicode_buf, 1) != 1 && unicode_idx < MB_CUR_MAX) { | 1704 | if (mbstowcs(&wc, unicode_buf, 1) != 1 && unicode_idx < MB_CUR_MAX) { |
1702 | delay = 50; | 1705 | delay = 50; |
1703 | continue; | 1706 | goto poll_again; |
1704 | } | 1707 | } |
1705 | ic = wc; | 1708 | ic = wc; |
1706 | } | 1709 | } |