Mercurial > octave
diff libinterp/corefcn/toplev.cc @ 21534:be1c9f1e31ab
Cast NULL pointer to char, rather than void, when using execl.
* toplev.cc (Fsystem): Cast end of argument NULL pointer to (char *) rather
than (void *) as recommended by execl man page.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 25 Mar 2016 11:22:58 -0700 |
parents | 1da428cbf401 |
children | fe1447ae68cf |
line wrap: on
line diff
--- a/libinterp/corefcn/toplev.cc Fri Mar 25 10:32:33 2016 -0700 +++ b/libinterp/corefcn/toplev.cc Fri Mar 25 11:22:58 2016 -0700 @@ -1178,7 +1178,7 @@ { // FIXME: should probably replace this call with something portable. execl (SHELL_PATH, "sh", "-c", cmd_str.c_str (), - static_cast<void *> (0)); + static_cast<char *> (0)); panic_impossible (); }