aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-11-29 11:49:37 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-11-29 11:49:37 +0100
commitb86a9ed699e2c4693167d6ead00ac307bd9c01c6 (patch)
treeb8917bf8e86a8519e3edf59171eb8e966089f6e6 /miscutils
parentec16c030bd5527137f95a1c30e6a1f3c9054dcf7 (diff)
downloadbusybox-w32-b86a9ed699e2c4693167d6ead00ac307bd9c01c6.tar.gz
busybox-w32-b86a9ed699e2c4693167d6ead00ac307bd9c01c6.tar.bz2
busybox-w32-b86a9ed699e2c4693167d6ead00ac307bd9c01c6.zip
use write_str() functions where appropriate
function old new delta chat_main 1300 1295 -5 finalize_tty_attrs 80 70 -10 getty_main 1538 1519 -19 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-34) Total: -34 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/chat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/chat.c b/miscutils/chat.c
index a7faaf284..86a114df6 100644
--- a/miscutils/chat.c
+++ b/miscutils/chat.c
@@ -379,7 +379,7 @@ int chat_main(int argc UNUSED_PARAM, char **argv)
379 // dump device input if ECHO ON 379 // dump device input if ECHO ON
380 if (echo) { 380 if (echo) {
381// if (buf[buf_len] < ' ') { 381// if (buf[buf_len] < ' ') {
382// full_write(STDERR_FILENO, "^", 1); 382// full_write2_str("^");
383// buf[buf_len] += '@'; 383// buf[buf_len] += '@';
384// } 384// }
385 full_write(STDERR_FILENO, buf+buf_len, 1); 385 full_write(STDERR_FILENO, buf+buf_len, 1);
@@ -509,7 +509,7 @@ int chat_main(int argc UNUSED_PARAM, char **argv)
509#if ENABLE_FEATURE_CHAT_IMPLICIT_CR 509#if ENABLE_FEATURE_CHAT_IMPLICIT_CR
510 // or terminate command with \r (if not inhibited) 510 // or terminate command with \r (if not inhibited)
511 else if (!nocr) 511 else if (!nocr)
512 xwrite(STDOUT_FILENO, "\r", 1); 512 xwrite_str(STDOUT_FILENO, "\r");
513#endif 513#endif
514 // bail out unless we sent command successfully 514 // bail out unless we sent command successfully
515 if (exitcode) 515 if (exitcode)