View | Details | Raw Unified | Return to bug 110858
Collapse All | Expand All

(-)net/ztelnet/files/patch-as (-53 / +5 lines)
Lines 1-61 Link Here
1
diff -uNr --exclude=*.orig work.old/ztelnet/zmodem/rbsb.c work/ztelnet/zmodem/rbsb.c
1
diff -uNr --exclude=*.orig work.old/ztelnet/zmodem/rbsb.c work/ztelnet/zmodem/rbsb.c
2
--- work.old/ztelnet/zmodem/rbsb.c	Mon Apr 24 23:09:14 1995
2
--- work.old/ztelnet/zmodem/rbsb.c	Mon Apr 24 23:09:14 1995
3
+++ work/ztelnet/zmodem/rbsb.c	Tue Jun 20 22:58:32 2000
3
+++ work/ztelnet/zmodem/rbsb.c	Tue Jun 20 22:58:32 2000
4
@@ -6,7 +6,7 @@
4
@@ -7,6 +7,9 @@
5
  */
6
 
5
 
7
 STATIC char *Copyr = "Copyright 1993 Omen Technology Inc All Rights Reserved";
6
 STATIC char *Copyr = "Copyright 1993 Omen Technology Inc All Rights Reserved";
8
-
7
 
9
+#define V7
8
+#undef V7
9
+#define POSIX
10
+
10
 #ifdef V7
11
 #ifdef V7
11
 #include <sys/types.h>
12
 #include <sys/types.h>
12
 #include <sys/stat.h>
13
 #include <sys/stat.h>
13
@@ -28,8 +28,6 @@
14
 #define OS "SYS III/V"
15
 #define MODE2OK
16
 #include <string.h>
17
-#include <stdlib.h>
18
-#include <unistd.h>
19
 #endif
20
 
21
 #ifdef POSIX
22
@@ -41,8 +39,6 @@
23
 #include <termios.h>
24
 #define OS "POSIX"
25
 #include <string.h>
26
-#include <stdlib.h>
27
-#include <unistd.h>
28
 #ifndef READCHECK
29
 #ifndef FIONREAD
30
 #define SV
31
@@ -70,6 +66,10 @@
32
 #define sendline(c) net_putchar(c & 0377)
33
 #define xsendline(c) net_putchar(c)
34
 
35
+/*----Appended by yongari to shut up compiler---*/
36
+STATIC zmputs();
37
+/*----------------------------------------------*/
38
+
39
 STATIC char linbuf[HOWMANY];
40
 STATIC int Lleft=0;		/* number of characters in linbuf */
41
 STATIC jmp_buf tohere;		/* For the interrupt on RX timeout */
42
@@ -84,8 +84,6 @@
43
 
44
 STATIC int Twostop;		/* Use two stop bits */
45
 
46
-/*PMS*/
47
-STATIC zmputs(char *s);
48
 
49
 /*
50
  *  The following uses an external rdchk() routine if available,
51
@@ -292,10 +290,8 @@
52
 STATIC init_rbsb()
53
 {
54
    int i;
55
-#ifdef LLITOUT
56
    Locmode = 0;
57
    Locbit = LLITOUT;
58
-#endif
59
    Lleft = 0;
60
 #ifdef ONEREAD
61
    Readnum = 1;

Return to bug 110858