changeset 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 6187f1d2ca13
children ca9c8ef555cb
files libinterp/corefcn/toplev.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 ();
         }