aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorGravatar Denys Vlasenko <vda.linux@googlemail.com>2020-11-29 11:49:37 +0100
committerGravatar Denys Vlasenko <vda.linux@googlemail.com>2020-11-29 11:49:37 +0100
commitb86a9ed699e2c4693167d6ead00ac307bd9c01c6 (patch)
treeb8917bf8e86a8519e3edf59171eb8e966089f6e6 /loginutils
parentec16c030bd5527137f95a1c30e6a1f3c9054dcf7 (diff)
downloadbusybox-b86a9ed699e2c4693167d6ead00ac307bd9c01c6.tar.gz
busybox-b86a9ed699e2c4693167d6ead00ac307bd9c01c6.tar.bz2
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 'loginutils')
-rw-r--r--loginutils/getty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c
index 99af72f68..6c6d409f4 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -404,7 +404,7 @@ static void finalize_tty_attrs(void)
set_tty_attrs();
/* Now the newline character should be properly written */
- full_write(STDOUT_FILENO, "\n", 1);
+ full_write1_str("\n");
}
/* extract baud rate from modem status message */
@@ -498,13 +498,13 @@ static char *get_logname(void)
case 0x7f:
G.tty_attrs.c_cc[VERASE] = c;
if (bp > G.line_buf) {
- full_write(STDOUT_FILENO, "\010 \010", 3);
+ full_write1_str("\010 \010");
bp--;
}
break;
case CTL('U'):
while (bp > G.line_buf) {
- full_write(STDOUT_FILENO, "\010 \010", 3);
+ full_write1_str("\010 \010");
bp--;
}
break;