#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
#ifndef REDBOOT /*SB */
typedef int cyg_int32;
-int
+static int
CYGACC_COMM_IF_GETC_TIMEOUT (char chan, char *c)
{
#define DELAY 20
return 0;
}
-void
+static void
CYGACC_COMM_IF_PUTC (char x, char y)
{
putc (y);
}
/* Parse (scan) a number */
-bool
+static bool
parse_num (char *s, unsigned long *val, char **es, char *delim)
{
bool first = true;
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);
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.
*/