aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--loginutils/getty.c6
-rw-r--r--miscutils/chat.c4
2 files changed, 5 insertions, 5 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)
404 set_tty_attrs(); 404 set_tty_attrs();
405 405
406 /* Now the newline character should be properly written */ 406 /* Now the newline character should be properly written */
407 full_write(STDOUT_FILENO, "\n", 1); 407 full_write1_str("\n");
408} 408}
409 409
410/* extract baud rate from modem status message */ 410/* extract baud rate from modem status message */
@@ -498,13 +498,13 @@ static char *get_logname(void)
498 case 0x7f: 498 case 0x7f:
499 G.tty_attrs.c_cc[VERASE] = c; 499 G.tty_attrs.c_cc[VERASE] = c;
500 if (bp > G.line_buf) { 500 if (bp > G.line_buf) {
501 full_write(STDOUT_FILENO, "\010 \010", 3); 501 full_write1_str("\010 \010");
502 bp--; 502 bp--;
503 } 503 }
504 break; 504 break;
505 case CTL('U'): 505 case CTL('U'):
506 while (bp > G.line_buf) { 506 while (bp > G.line_buf) {
507 full_write(STDOUT_FILENO, "\010 \010", 3); 507 full_write1_str("\010 \010");
508 bp--; 508 bp--;
509 } 509 }
510 break; 510 break;
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)