From 0f7c0b9c5fb28db8bb85b52d16a8a7fab77093e9 Mon Sep 17 00:00:00 2001 From: rathnor Date: Wed, 11 Jun 2003 04:21:17 +0000 Subject: make sure that "0" is 4-bit safe for a null pointer by replacing it with (void *) NULL --- src/FbCommands.cc | 6 +++--- src/fluxbox.cc | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/FbCommands.cc b/src/FbCommands.cc index a118fb3..ba409d3 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbCommands.cc,v 1.6 2003/06/08 13:47:30 rathnor Exp $ +// $Id: FbCommands.cc,v 1.7 2003/06/11 04:21:16 rathnor Exp $ #include "FbCommands.hh" #include "fluxbox.hh" @@ -49,11 +49,11 @@ void ExecuteCmd::execute() { displaystring += intbuff; setsid(); putenv(const_cast(displaystring.c_str())); - execl("/bin/sh", "/bin/sh", "-c", m_cmd.c_str(), 0); + execl("/bin/sh", "/bin/sh", "-c", m_cmd.c_str(), (void *) NULL); exit(0); } #else // __EMX__ - spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", item->exec().c_str(), 0); + spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", item->exec().c_str(), (void *) NULL); #endif // !__EMX__ } diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 7c834a6..1d59381 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.153 2003/06/08 14:32:28 rathnor Exp $ +// $Id: fluxbox.cc,v 1.154 2003/06/11 04:21:17 rathnor Exp $ #include "fluxbox.hh" @@ -1736,7 +1736,7 @@ void Fluxbox::restart(const char *prog) { shutdown(); if (prog) { - execlp(prog, prog, 0); + execlp(prog, prog, (void *) NULL); perror(prog); } -- cgit v0.11.2