Cast NULL sentinel to void * to make sure it's 64-bit on 64-bit architectures
This commit is contained in:
parent
4777eb27a5
commit
8d1504de22
12
graphics/gimp/stable/patches/patch-plug-ins_print_print_c
Normal file
12
graphics/gimp/stable/patches/patch-plug-ins_print_print_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-plug-ins_print_print_c,v 1.1 2003/03/01 05:11:23 pvalchev Exp $
|
||||
--- plug-ins/print/print.c.orig Fri Feb 28 19:57:52 2003
|
||||
+++ plug-ins/print/print.c Fri Feb 28 19:58:03 2003
|
||||
@@ -571,7 +571,7 @@ run (char *name, /* I - Name of print
|
||||
dup2 (pipefd[0], 0);
|
||||
close (pipefd[0]);
|
||||
close (pipefd[1]);
|
||||
- execl("/bin/sh", "/bin/sh", "-c", vars.output_to, NULL);
|
||||
+ execl("/bin/sh", "/bin/sh", "-c", vars.output_to, (void *)NULL);
|
||||
/* NOTREACHED */
|
||||
exit (1);
|
||||
} else {
|
12
misc/logjam/patches/patch-src_ljtypes_c
Normal file
12
misc/logjam/patches/patch-src_ljtypes_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_ljtypes_c,v 1.1 2003/03/01 05:11:24 pvalchev Exp $
|
||||
--- src/ljtypes.c.orig Fri Feb 28 20:02:31 2003
|
||||
+++ src/ljtypes.c Fri Feb 28 20:03:02 2003
|
||||
@@ -662,7 +662,7 @@ entry_from_user_editor(const char *filen
|
||||
gchar *editor =
|
||||
(getenv("VISUAL") ? getenv("VISUAL") :
|
||||
getenv("EDITOR") ? getenv("EDITOR") : "vi");
|
||||
- execlp(editor, editor, filename, NULL);
|
||||
+ execlp(editor, editor, filename, (void *)NULL);
|
||||
_exit(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user