aboutsummaryrefslogtreecommitdiff
path: root/miscutils/rx.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/rx.c')
-rw-r--r--miscutils/rx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/rx.c b/miscutils/rx.c
index 874a3f0a3..319ec1d49 100644
--- a/miscutils/rx.c
+++ b/miscutils/rx.c
@@ -120,7 +120,7 @@ static int receive(/*int read_fd, */int file_fd)
120 /* Write previously received block */ 120 /* Write previously received block */
121 errno = 0; 121 errno = 0;
122 if (full_write(file_fd, blockBuf, blockLength) != blockLength) { 122 if (full_write(file_fd, blockBuf, blockLength) != blockLength) {
123 bb_perror_msg(bb_msg_write_error); 123 bb_simple_perror_msg(bb_msg_write_error);
124 goto fatal; 124 goto fatal;
125 } 125 }
126 126
@@ -150,7 +150,7 @@ static int receive(/*int read_fd, */int file_fd)
150 goto timeout; 150 goto timeout;
151 151
152 if (blockNo != (255 - blockNoOnesCompl)) { 152 if (blockNo != (255 - blockNoOnesCompl)) {
153 bb_error_msg("bad block ones compl"); 153 bb_simple_error_msg("bad block ones compl");
154 goto error; 154 goto error;
155 } 155 }
156 156
@@ -229,7 +229,7 @@ static int receive(/*int read_fd, */int file_fd)
229 do_crc = 0; 229 do_crc = 0;
230 goto timeout; 230 goto timeout;
231 } 231 }
232 bb_error_msg("too many errors; giving up"); 232 bb_simple_error_msg("too many errors; giving up");
233 fatal: 233 fatal:
234 /* 5 CAN followed by 5 BS. Don't try too hard... */ 234 /* 5 CAN followed by 5 BS. Don't try too hard... */
235 safe_write(write_fd, "\030\030\030\030\030\010\010\010\010\010", 10); 235 safe_write(write_fd, "\030\030\030\030\030\010\010\010\010\010", 10);