int
xyzModem_stream_open(connection_info_t *info, int *err)
{
- int console_chan, stat;
+ int console_chan, stat=0;
int retries = xyzModem_MAX_RETRIES;
int crc_retries = xyzModem_MAX_RETRIES_WITH_CRC;
// skip filename
while (*xyz.bufp++);
// get the length
- parse_num(xyz.bufp, &xyz.file_length, NULL, " ");
+ parse_num((char *)xyz.bufp, &xyz.file_length, NULL, " ");
#endif
// The rest of the file name data block quietly discarded
xyz.tx_ack = true;
}
int
-xyzModem_stream_read(char *buf, int size, int *err)
+xyzModem_stream_read(void *buf, int size, int *err)
{
int stat, total, len;
int retries;
if (size < len) len = size;
memcpy(buf, xyz.bufp, len);
size -= len;
- buf += len;
+ buf = (char *)buf + len;
total += len;
xyz.len -= len;
xyz.bufp += len;