summaryrefslogtreecommitdiff
path: root/net/ztelnet/files/patch-aw
diff options
context:
space:
mode:
Diffstat (limited to 'net/ztelnet/files/patch-aw')
-rw-r--r--net/ztelnet/files/patch-aw49
1 files changed, 49 insertions, 0 deletions
diff --git a/net/ztelnet/files/patch-aw b/net/ztelnet/files/patch-aw
new file mode 100644
index 000000000000..26a70beb4ca2
--- /dev/null
+++ b/net/ztelnet/files/patch-aw
@@ -0,0 +1,49 @@
+diff -uNr ../ztelnet/zmodem/zm.c ./zmodem/zm.c
+--- ../ztelnet/zmodem/zm.c Mon Apr 24 14:31:24 1995
++++ ./zmodem/zm.c Wed Dec 3 03:59:53 1997
+@@ -72,10 +72,7 @@
+ STATIC char Attn[ZATTNLEN+1]; /* Attention string rx sends to tx on err */
+ STATIC char *Altcan; /* Alternate canit string */
+
+-STATIC int lastsent; /* Last char we sent */
+-
+-/* PMS */
+-#include "zm.h"
++STATIC lastsent; /* Last char we sent */
+
+ STATIC char *frametypes[] = {
+ "No Response to Error Correction Request", /* -4 */
+@@ -110,6 +107,23 @@
+
+ STATIC char badcrc[] = "Bad CRC";
+
++/*---- Appended by yongari to shutu up compiler -----*/
++STATIC zsbh32();
++STATIC zsda32();
++STATIC zrdat32();
++STATIC garbitch();
++STATIC zrbhdr();
++STATIC zrbhd32();
++STATIC zrhhdr();
++STATIC zputhex();
++STATIC zsendline();
++STATIC zgethex();
++STATIC zgeth1();
++STATIC zdlread();
++STATIC noxrd7();
++/* STATIC unsigned long rclhdr();*/
++/*----------------------------------------------------*/
++
+ /* Send ZMODEM binary header hdr of type type */
+ STATIC zsbhdr(len, type, hdr)
+ register char *hdr;
+@@ -885,8 +899,7 @@
+ }
+
+ /* Recover a unsigned long integer from a header */
+-STATIC unsigned long
+-rclhdr(hdr)
++STATIC unsigned long rclhdr(hdr)
+ register char *hdr;
+ {
+ register unsigned long l;