diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-03-27 08:01:50 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-03-27 08:01:50 +0000 |
commit | 388625e08327d78ee1141eeb1afbeee7371f396d (patch) | |
tree | a9ef24abc2990123147ce6234b2d137121e7e80e /net/ztelnet | |
parent | d94e12a135d549b08876c87d23f0e37097b8b67f (diff) |
Notes
Diffstat (limited to 'net/ztelnet')
-rw-r--r-- | net/ztelnet/files/patch-as | 58 |
1 files changed, 5 insertions, 53 deletions
diff --git a/net/ztelnet/files/patch-as b/net/ztelnet/files/patch-as index ed9f3df96f50..80fa928f92e8 100644 --- a/net/ztelnet/files/patch-as +++ b/net/ztelnet/files/patch-as @@ -1,61 +1,13 @@ diff -uNr --exclude=*.orig work.old/ztelnet/zmodem/rbsb.c work/ztelnet/zmodem/rbsb.c --- work.old/ztelnet/zmodem/rbsb.c Mon Apr 24 23:09:14 1995 +++ work/ztelnet/zmodem/rbsb.c Tue Jun 20 22:58:32 2000 -@@ -6,7 +6,7 @@ - */ +@@ -7,6 +7,9 @@ STATIC char *Copyr = "Copyright 1993 Omen Technology Inc All Rights Reserved"; -- -+#define V7 + ++#undef V7 ++#define POSIX ++ #ifdef V7 #include <sys/types.h> #include <sys/stat.h> -@@ -28,8 +28,6 @@ - #define OS "SYS III/V" - #define MODE2OK - #include <string.h> --#include <stdlib.h> --#include <unistd.h> - #endif - - #ifdef POSIX -@@ -41,8 +39,6 @@ - #include <termios.h> - #define OS "POSIX" - #include <string.h> --#include <stdlib.h> --#include <unistd.h> - #ifndef READCHECK - #ifndef FIONREAD - #define SV -@@ -70,6 +66,10 @@ - #define sendline(c) net_putchar(c & 0377) - #define xsendline(c) net_putchar(c) - -+/*----Appended by yongari to shut up compiler---*/ -+STATIC zmputs(); -+/*----------------------------------------------*/ -+ - STATIC char linbuf[HOWMANY]; - STATIC int Lleft=0; /* number of characters in linbuf */ - STATIC jmp_buf tohere; /* For the interrupt on RX timeout */ -@@ -84,8 +84,6 @@ - - STATIC int Twostop; /* Use two stop bits */ - --/*PMS*/ --STATIC zmputs(char *s); - - /* - * The following uses an external rdchk() routine if available, -@@ -292,10 +290,8 @@ - STATIC init_rbsb() - { - int i; --#ifdef LLITOUT - Locmode = 0; - Locbit = LLITOUT; --#endif - Lleft = 0; - #ifdef ONEREAD - Readnum = 1; |