cast NULL sentinel to void * so it is 64bit on 64bit arches

This commit is contained in:
pvalchev 2002-12-28 22:51:42 +00:00
parent 9adb9e87ee
commit 8557012a72
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_Sound_ASSound_c,v 1.1 2002/12/28 22:51:42 pvalchev Exp $
--- src/Sound/ASSound.c.orig Sat Dec 28 13:47:43 2002
+++ src/Sound/ASSound.c Sat Dec 28 13:47:52 2002
@@ -156,7 +156,7 @@ PlaySound (int sid)
return;
else if (child == 0)
{
- execlp (SoundPlayer, SoundPlayer, SoundTable[sid]->data, NULL);
+ execlp (SoundPlayer, SoundPlayer, SoundTable[sid]->data, (void *)NULL);
}
else
{

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_Util_cc,v 1.1 2002/12/28 22:51:42 pvalchev Exp $
--- src/Util.cc.orig Sat Dec 28 13:59:59 2002
+++ src/Util.cc Sat Dec 28 14:00:18 2002
@@ -159,7 +159,7 @@ void bexec(const string& command, const
assert(ret != -1);
string cmd = "exec ";
cmd += command;
- ret = execl("/bin/sh", "/bin/sh", "-c", cmd.c_str(), NULL);
+ ret = execl("/bin/sh", "/bin/sh", "-c", cmd.c_str(), (void *)NULL);
exit(ret);
}
#else // __EMX__

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_blackbox_cc,v 1.1 2002/12/28 22:51:42 pvalchev Exp $
--- src/blackbox.cc.orig Sat Dec 28 14:00:06 2002
+++ src/blackbox.cc Sat Dec 28 14:00:32 2002
@@ -915,7 +915,7 @@ void Blackbox::restart(const char *prog)
if (prog) {
putenv(const_cast<char *>(screenList.front()->displayString().c_str()));
- execlp(prog, prog, NULL);
+ execlp(prog, prog, (void *)NULL);
perror(prog);
}