Cast NULL sentinel to void * to make sure it's 64-bit on 64-bit architectures

This commit is contained in:
pvalchev 2003-03-01 05:11:23 +00:00
parent 4777eb27a5
commit 8d1504de22
2 changed files with 24 additions and 0 deletions

View 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 {

View 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);
}