diff libinterp/corefcn/syscalls.cc @ 22087:7f79c716876c

eliminate unused parameter from octave::sys::popen2 * oct-syscalls.h, oct-syscalls.cc (popen2): Eliminate interactive parameter. * syscalls.cc (Fpopen2): Don't pass INTERACTIVE to octave::sys::popen2.
author John W. Eaton <jwe@octave.org>
date Mon, 11 Jul 2016 13:02:58 -0400
parents 112b20240c87
children c3b5f26721e1
line wrap: on
line diff
--- a/libinterp/corefcn/syscalls.cc	Mon Jul 11 13:20:58 2016 +0200
+++ b/libinterp/corefcn/syscalls.cc	Mon Jul 11 13:02:58 2016 -0400
@@ -38,6 +38,7 @@
 #include "fcntl-wrappers.h"
 #include "file-ops.h"
 #include "file-stat.h"
+#include "lo-utils.h"
 #include "oct-env.h"
 #include "oct-syscalls.h"
 #include "oct-uname.h"
@@ -45,7 +46,6 @@
 #include "defun.h"
 #include "error.h"
 #include "errwarn.h"
-#include "lo-utils.h"
 #include "oct-hist.h"
 #include "oct-map.h"
 #include "ovl.h"
@@ -279,8 +279,8 @@
   std::string msg;
   pid_t pid;
 
-  pid = octave::sys::popen2 (exec_file, arg_list, sync_mode, filedesc,
-                             msg, interactive);
+  pid = octave::sys::popen2 (exec_file, arg_list, sync_mode, filedesc, msg);
+
   if (pid < 0)
     error (msg.c_str ());