X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=miscutils%2Frx.c;h=874a3f0a33a5667abbaef568212bd1161bb68d02;hb=363fb5ec4091120003b3f204996e7ff0aa354e58;hp=660f66a89d70df4ac46ce4177ee3f7c4f950614f;hpb=1d3a04a3a4be8682d4317251fc14e81ad655d58a;p=oweals%2Fbusybox.git diff --git a/miscutils/rx.c b/miscutils/rx.c index 660f66a89..874a3f0a3 100644 --- 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 -//config: bool "rx" +//config: bool "rx (2.9 kb)" //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)) @@ -94,7 +94,7 @@ static int receive(/*int read_fd, */int file_fd) int blockBegin; int blockNo, blockNoOnesCompl; int cksum_or_crc; - int expected; + unsigned expected; int i, j; blockBegin = read_byte(timeout); @@ -263,6 +263,7 @@ int rx_main(int argc UNUSED_PARAM, char **argv) termios_err = tcgetattr(read_fd, &tty); if (termios_err == 0) { +//TODO: use set_termios_to_raw() orig_tty = tty; cfmakeraw(&tty); tcsetattr(read_fd, TCSAFLUSH, &tty);