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 06:25:19 +00:00
parent 8d1504de22
commit 26cf1d617f

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-kdecore_kapplication_cpp,v 1.1 2003/03/01 06:25:19 pvalchev Exp $
--- kdecore/kapplication.cpp.orig Fri Feb 28 20:00:35 2003
+++ kdecore/kapplication.cpp Fri Feb 28 20:00:54 2003
@@ -749,7 +749,7 @@ static int my_system (const char *comman
return -1;
if (pid == 0) {
const char* shell = "/bin/sh";
- execl(shell, shell, "-c", command, 0L);
+ execl(shell, shell, "-c", command, (void *)NULL);
::exit(127);
}
do {