diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2022-01-18 00:31:27 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2022-01-18 00:36:42 +0100 |
commit | 1e825acf8d715fe49af040cb02f9e96c26955832 (patch) | |
tree | 1ba246aca6ab29b154dd14e61e96fafd6bab475e /libbb/read_key.c | |
parent | 8ad2acf352d790d0bdd792b8e126d58a088451f3 (diff) | |
download | busybox-w32-1e825acf8d715fe49af040cb02f9e96c26955832.tar.gz busybox-w32-1e825acf8d715fe49af040cb02f9e96c26955832.tar.bz2 busybox-w32-1e825acf8d715fe49af040cb02f9e96c26955832.zip |
libbb: shrink lineedit_read_key()
function old new delta
lineedit_read_key 237 231 -6
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/read_key.c')
-rw-r--r-- | libbb/read_key.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/read_key.c b/libbb/read_key.c index 829ae215c..cf8ed411e 100644 --- a/libbb/read_key.c +++ b/libbb/read_key.c | |||
@@ -291,6 +291,7 @@ int64_t FAST_FUNC safe_read_key(int fd, char *buffer, int timeout) | |||
291 | { | 291 | { |
292 | int64_t r; | 292 | int64_t r; |
293 | do { | 293 | do { |
294 | /* errno = 0; - read_key does this itself */ | ||
294 | r = read_key(fd, buffer, timeout); | 295 | r = read_key(fd, buffer, timeout); |
295 | } while (errno == EINTR); | 296 | } while (errno == EINTR); |
296 | return r; | 297 | return r; |