From b86a9ed699e2c4693167d6ead00ac307bd9c01c6 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 29 Nov 2020 11:49:37 +0100 Subject: 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 --- miscutils/chat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'miscutils') 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) // dump device input if ECHO ON if (echo) { // if (buf[buf_len] < ' ') { -// full_write(STDERR_FILENO, "^", 1); +// full_write2_str("^"); // buf[buf_len] += '@'; // } full_write(STDERR_FILENO, buf+buf_len, 1); @@ -509,7 +509,7 @@ int chat_main(int argc UNUSED_PARAM, char **argv) #if ENABLE_FEATURE_CHAT_IMPLICIT_CR // or terminate command with \r (if not inhibited) else if (!nocr) - xwrite(STDOUT_FILENO, "\r", 1); + xwrite_str(STDOUT_FILENO, "\r"); #endif // bail out unless we sent command successfully if (exitcode) -- cgit v1.2.3