openbsd-ports/print/gv/patches/patch-source_setenv_c
espie 4135f66c4d While preparing for ghostscript 7.00, I found a lot of weirdness in that
port.

- why bother creating a man page if we don't install it ?
- our echo does handle \n, so it needs to be protected.
- for that matter, yield a sensible list of directories for OpenBSD.
- INSTALL script that predates dependencies...

And:
- prepare for gs 7.00, detect the version of ghostscript installed,
and tweak resource files to use x11 device with aa options instead
of the older x11alpha. Mark resource files as no checksum accordingly.
2001-04-14 14:43:04 +00:00

22 lines
532 B
Plaintext

$OpenBSD: patch-source_setenv_c,v 1.1 2001/04/14 14:43:05 espie Exp $
--- source/setenv.c.orig Tue Apr 15 00:00:00 1997
+++ source/setenv.c Sat Apr 14 04:57:36 2001
@@ -39,7 +39,7 @@ static char sccsid[] = "@(#)setenv.c 5.4
*/
int
setenv(name, value, rewrite)
- register char *name, *value;
+ register const char *name, *value;
int rewrite;
{
extern char **environ;
@@ -97,7 +97,7 @@ setenv(name, value, rewrite)
*/
void
unsetenv(name)
- char *name;
+ const char *name;
{
extern char **environ;
register char **P;