#define BSP 0x08
#define NAK 0x15
#define CAN 0x18
-#define EOF 0x1A /* ^Z for DOS officionados */
+#define EOF 0x1A /* ^Z for DOS aficionados */
#define USE_YMODEM_LENGTH
static int
zm_dprintf (char *fmt, ...)
{
- int cur_console;
+ int cur_console __attribute__((unused));
va_list args;
va_start (args, fmt);
#ifdef REDBOOT
CYGACC_CALL_IF_SET_CONSOLE_COMM (cur_console);
#endif
+ return 0;
}
-static void
+static inline void
zm_flush (void)
{
}
return len;
}
-static void
+static inline void
zm_flush (void)
{
#ifdef REDBOOT
static unsigned char zm_buf[2048];
static unsigned char *zm_bp;
-static void
+static inline void
zm_new (void)
{
zm_bp = zm_buf;
}
-static void
+static inline void
zm_save (unsigned char c)
{
*zm_bp++ = c;
}
-static void
+static inline void
zm_dump (int line)
{
zm_dprintf ("Packet at line: %d\n", line);
xyzModem_CHAR_TIMEOUT);
#else
/* TODO: CHECK ! */
- int dummy;
+ int dummy = 0;
xyz.__chan = &dummy;
#endif
xyz.len = 0;
ZM_DEBUG (zm_dprintf ("Engaging cleanup mode...\n"));
/*
* Consume any trailing crap left in the inbuffer from
- * previous recieved blocks. Since very few files are an exact multiple
+ * previous received blocks. Since very few files are an exact multiple
* of the transfer block size, there will almost always be some gunk here.
* If we don't eat it now, RedBoot will think the user typed it.
*/