ZMODEM: sz argument readability rename

Change-Id: I7e49ed8a98f9002177f33d29904fcfe132117401
GitOrigin-RevId: d82cf104363686ba60796e7dfe97ab3d4f7f4618
This commit is contained in:
Matt Harvey
2021-09-21 22:22:38 -07:00
committed by Sam Leffler
parent 7363bd638c
commit fc7b9bc232

View File

@@ -65,7 +65,7 @@ impl State {
pub fn send<CI, CO, DI>(
mut channel_in: CI,
mut channel_out: CO,
mut r: DI,
mut data_in: DI,
filename: &str,
filesize: Option<u32>,
) -> io::Result<()>
@@ -109,9 +109,9 @@ where
}
State::SendingData => {
offset = frame.get_count();
r.seek(io::SeekFrom::Start(offset as u64))?;
data_in.seek(io::SeekFrom::Start(offset as u64))?;
let num = r.read(&mut data)?;
let num = data_in.read(&mut data)?;
if num == 0 {
write_zeof(&mut channel_out, offset)?;
@@ -130,7 +130,7 @@ where
write_zlde_data(&mut channel_out, ZCRCG, &data[..num])?;
offset += num as u32;
let num = r.read(&mut data)?;
let num = data_in.read(&mut data)?;
if num < data.len() || i >= SUBPACKET_PER_ACK {
write_zlde_data(&mut channel_out, ZCRCW, &data[..num])?;
break;