ports/devel/cscope/files/patch-src_exec.c
Rainer Hurling 7f8468989a devel/cscope: Port cleanup
General maintenance update:

- Remove Makefile line '#Created by' header
- Change PORTVERSION to DISTVERSION
- Correct COMMENT
- Move GNU_CONFIGURE=yes up
- Rewrite summary in pkg-descr
- Include a second link
- Add patches under files to suppress compiler warnings

PR:		250168
Submitted by:	Moritz Schmitt <moritz@schmi.tt> (maintainer)
Approved by:	arrowd (mentor)
Differential Revision:	https://reviews.freebsd.org/D26704
2020-10-07 15:59:40 +00:00

20 lines
628 B
C

--- src/exec.c.orig 2020-10-05 09:17:52 UTC
+++ src/exec.c
@@ -55,7 +55,7 @@ static sighandler_t oldsigtstp; /* old value of SIGTST
#ifndef __MSDOS__ /* none of these is needed, there */
static int join(pid_t p);
-static int myexecvp(char *a, char **args);
+void myexecvp(char *a, char **args);
static pid_t myfork(void);
#endif
@@ -111,7 +111,7 @@ execute(char *a, ...) /* note: "exec" is already defin
/* myexecvp is an interface to the execvp system call to
* modify argv[0] to reference the last component of its path-name.
*/
-static int
+void
myexecvp(char *a, char **args)
{
char msg[MSGLEN + 1];