summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDenys Vlasenko2022-01-18 00:31:27 +0100
committerDenys Vlasenko2022-01-18 00:36:42 +0100
commit1e825acf8d715fe49af040cb02f9e96c26955832 (patch)
tree1ba246aca6ab29b154dd14e61e96fafd6bab475e /editors
parent8ad2acf352d790d0bdd792b8e126d58a088451f3 (diff)
downloadbusybox-1e825acf8d715fe49af040cb02f9e96c26955832.zip
busybox-1e825acf8d715fe49af040cb02f9e96c26955832.tar.gz
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 'editors')
-rw-r--r--editors/patch.c2
-rw-r--r--editors/patch_toybox.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/editors/patch.c b/editors/patch.c
index 1101766..aebb507 100644
--- a/editors/patch.c
+++ b/editors/patch.c
@@ -418,7 +418,7 @@ int patch_main(int argc UNUSED_PARAM, char **argv)
}
// Loop through the lines in the patch
- for(;;) {
+ for (;;) {
char *patchline;
patchline = xmalloc_fgetline(stdin);
diff --git a/editors/patch_toybox.c b/editors/patch_toybox.c
index aebab81..69a508b 100644
--- a/editors/patch_toybox.c
+++ b/editors/patch_toybox.c
@@ -441,7 +441,7 @@ int patch_main(int argc UNUSED_PARAM, char **argv)
TT.filein = TT.fileout = -1;
// Loop through the lines in the patch
- for(;;) {
+ for (;;) {
char *patchline;
patchline = get_line(TT.filepatch);