From 6c0db93dda764e1c854390b07875af8550146ced Mon Sep 17 00:00:00 2001 From: rathnor Date: Wed, 11 Jun 2003 10:50:59 +0000 Subject: revert NULL thing --- 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 ba409d3..8ca3cbb 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.7 2003/06/11 04:21:16 rathnor Exp $ +// $Id: FbCommands.cc,v 1.8 2003/06/11 10:50:58 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(), (void *) NULL); + execl("/bin/sh", "/bin/sh", "-c", m_cmd.c_str(), 0); exit(0); } #else // __EMX__ - spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", item->exec().c_str(), (void *) NULL); + spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", item->exec().c_str(), 0); #endif // !__EMX__ } diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 1d59381..b2154c7 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.154 2003/06/11 04:21:17 rathnor Exp $ +// $Id: fluxbox.cc,v 1.155 2003/06/11 10:50:59 rathnor Exp $ #include "fluxbox.hh" @@ -1736,7 +1736,7 @@ void Fluxbox::restart(const char *prog) { shutdown(); if (prog) { - execlp(prog, prog, (void *) NULL); + execlp(prog, prog, 0); perror(prog); } -- cgit v0.11.2