revert NULL thing
rathnor rathnor
2 files changed,
5 insertions(+),
5 deletions(-)
M
src/FbCommands.cc
→
src/FbCommands.cc
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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 @@ displaystring.erase(displaystring.size()-1);
displaystring += intbuff; setsid(); putenv(const_cast<char *>(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__ }
M
src/fluxbox.cc
→
src/fluxbox.cc
@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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); }