all repos — fluxbox @ 0f7c0b9c5fb28db8bb85b52d16a8a7fab77093e9

custom fork of the fluxbox windowmanager

make sure that "0" is 4-bit safe for a null pointer by replacing it with (void
*) NULL
rathnor rathnor
commit

0f7c0b9c5fb28db8bb85b52d16a8a7fab77093e9

parent

6a14858ac78310369bdd49eb5e050d48c4a418ea

2 files changed, 5 insertions(+), 5 deletions(-)

jump to
M src/FbCommands.ccsrc/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.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 @@ 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(), 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__ }
M src/fluxbox.ccsrc/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.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); }