1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/editors/teco/files/patch-zlinux
Pav Lucistnik 72ca267a92 A powerful and compact editor with completely nongrafical user interface.
PR:		ports/77565
Submitted by:	Stanislav Sedov <stas@core.310.ru>
2005-02-17 10:26:54 +00:00

33 lines
1.1 KiB
Plaintext

--- src/zlinux.c.orig Tue Feb 15 20:15:29 2005
+++ src/zlinux.c Tue Feb 15 20:22:42 2005
@@ -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 @@
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 @@
* 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 */