freebsd-ports/net/ztelnet/files/patch-ax
CHOI Junho b94f60a58b - fix core-dump problem in 4.x reported in ports/18573
- cleanup patches and extra file
- fix unnecessary delay(from byung)
- resurrect MAINTAINER line(me)
- fix distfile location
- fix DESCR to correct maintainer

PR:		ports/18573
Submitted by:	byung@nowcool.dhs.org
2000-06-20 14:27:33 +00:00

49 lines
1.3 KiB
Text

diff -uNr --exclude=*.orig work.old/ztelnet/zmodem/zm.c work/ztelnet/zmodem/zm.c
--- work.old/ztelnet/zmodem/zm.c Mon Apr 24 23:31:24 1995
+++ work/ztelnet/zmodem/zm.c Tue Jun 20 22:58:33 2000
@@ -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;