summaryrefslogtreecommitdiff
path: root/editors/teco/files/patch-src_zlinux.c
diff options
context:
space:
mode:
authorFernando ApesteguĂ­a <fernape@FreeBSD.org>2018-09-28 17:47:39 +0000
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2018-09-28 17:47:39 +0000
commitf12dc10f3e5f7d9537307a0c9f56683fd308beb6 (patch)
treecfea0ed52766d8fdcd2c9e2b033fac72f60601e8 /editors/teco/files/patch-src_zlinux.c
parentThis package makes it possible to serialize tags generated by the django-taggit (diff)
editors/teco: Improve documentation and set maintainership
* Add detailed man page * Add DOCS option * Add LICENSE * Give maintainership to submitter PR: 231184 Submitted by: bob@eager.cx Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D17228
Notes
Notes: svn path=/head/; revision=480869
Diffstat (limited to 'editors/teco/files/patch-src_zlinux.c')
-rw-r--r--editors/teco/files/patch-src_zlinux.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/editors/teco/files/patch-src_zlinux.c b/editors/teco/files/patch-src_zlinux.c
new file mode 100644
index 000000000000..98f362d2ae96
--- /dev/null
+++ b/editors/teco/files/patch-src_zlinux.c
@@ -0,0 +1,32 @@
+--- src/zlinux.c.orig 2004-05-21 20:59:29 UTC
++++ src/zlinux.c
+@@ -10,7 +10,6 @@
+
+ #include <sys/types.h> /* needed before sys/param.h is included */
+ #include <errno.h> /* define errno */
+-#include <malloc.h> /* malloc() and realloc() */
+ #include <signal.h> /* to catch ^C and ^Z signals */
+ #include <stdio.h> /* define stdin */
+ #include <string.h> /* strncpy(), strlen(), etc. */
+@@ -50,8 +49,6 @@ char *tgetstr(); /* get str value of a
+
+ static int vernum(); /* see bottom of this file */
+
+-extern int sys_nerr; /* number of system error messages */
+-
+ static int SupGotCtC = 0;
+
+ static glob_t pglob;
+@@ -1057,9 +1054,9 @@ char *argv[];
+ * execute imbedded command line-parsing macro directly from clpars[]
+ */
+
+- CStBeg = clpars; /* command string start */
+- CBfPtr = clpars; /* command string start */
+- CStEnd = clpars + CLPARS_LEN; /* command string end */
++ CStBeg = (charptr)clpars; /* command string start */
++ CBfPtr = (charptr)clpars; /* command string start */
++ CStEnd = (charptr)((unsigned int)clpars + CLPARS_LEN); /* command string end */
+ EStTop = EStBot; /* clear expression stack */
+ ExeCSt(); /* execute command string */
+