projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hexedit: restore screen on exit
[oweals/busybox.git]
/
miscutils
/
rx.c
diff --git
a/miscutils/rx.c
b/miscutils/rx.c
index 36fc20a72e978270ad3e158475d0bf4ccd0ec87c..874a3f0a33a5667abbaef568212bd1161bb68d02 100644
(file)
--- a/
miscutils/rx.c
+++ b/
miscutils/rx.c
@@
-15,11
+15,11
@@
* This was originally written for blob and then adapted for busybox.
*/
//config:config RX
* This was originally written for blob and then adapted for busybox.
*/
//config:config RX
-//config: bool "rx"
+//config: bool "rx
(2.9 kb)
"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: default y
//config: select PLATFORM_LINUX
//config: help
-//config:
Receive files using the Xmodem protocol.
+//config: Receive files using the Xmodem protocol.
//applet:IF_RX(APPLET(rx, BB_DIR_USR_BIN, BB_SUID_DROP))
//applet:IF_RX(APPLET(rx, BB_DIR_USR_BIN, BB_SUID_DROP))
@@
-94,7
+94,7
@@
static int receive(/*int read_fd, */int file_fd)
int blockBegin;
int blockNo, blockNoOnesCompl;
int cksum_or_crc;
int blockBegin;
int blockNo, blockNoOnesCompl;
int cksum_or_crc;
-
int
expected;
+
unsigned
expected;
int i, j;
blockBegin = read_byte(timeout);
int i, j;
blockBegin = read_byte(timeout);